離線安裝docker
作業系統版本: CentOS Linux release 7.7.1908 (Core)
需要安裝的docker版本:18.03.1-ce
1. docker rpm 包下載
[root@localhost docker]# ls -l
total 35412
-rw-r--r-- 1 root root 36254876 Oct 10 16:34 docker-ce-18.03.1.ce-1.el7.centos.x86_64.rpm
drwxr-xr-x 2 root root 4096 Oct 12 15:06 package
2. 下載需要的依賴包
[root@localhost package]# ls -l
total 2760
-rw-r--r-- 1 root root 78256 Oct 10 16:37 audit-libs-python-2.8.5-4.el7.x86_64.rpm
-rw-r--r-- 1 root root 302068 Oct 10 16:37 checkpolicy-2.5-8.el7.x86_64.rpm
-rw-r--r-- 1 root root 40212 Oct 10 17:27 container-selinux-2.107-3.el7.noarch.rpm
-rw-r--r-- 1 root root 67720 Oct 10 16:37 libcgroup-0.41-21.el7.x86_64.rpm
-rw-r--r-- 1 root root 115284 Oct 10 16:38 libsemanage-python-2.5-14.el7.x86_64.rpm
-rw-r--r-- 1 root root 50076 Oct 10 16:40 libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm
-rw-r--r-- 1 root root 69596 Oct 10 16:40 pigz-2.3.3-1.el7.centos.x86_64.rpm
-rw-r--r-- 1 root root 938736 Oct 10 17:40 policycoreutils-2.5-34.el7.x86_64.rpm
-rw-r--r-- 1 root root 468316 Oct 10 17:36 policycoreutils-python-2.5-34.el7.x86_64.rpm
-rw-r--r-- 1 root root 32880 Oct 10 16:39 python-IPy-0.75-6.el7.noarch.rpm
-rw-r--r-- 1 root root 635184 Oct 10 16:39 setools-libs-3.3.8-4.el7.x86_64.rpm
3. 安裝依賴包
4. 安裝docker
rpm -ivh docker-ce-18.03.1.ce-1.el7.centos.x86_64.rpm
5. 啟動docker
systemctl start docker
6.檢查docker程式是否啟動
[root@localhost package]# systemctl stop docker
[root@localhost package]# ps -ef | grep docker
root 5979 2235 0 15:09 pts/0 00:00:00 grep --color=auto docker
[root@localhost package]# systemctl start docker
[root@localhost package]# ps -ef | grep docker
root 5999 1 3 15:09 ? 00:00:00 /usr/bin/dockerd
root 6004 5999 0 15:09 ? 00:00:00 docker-containerd --config /var/run/docker/containerd/containerd.toml
root 6137 2235 0 15:09 pts/0 00:00:00 grep --color=auto docker
7. 檢查是否有容器啟動
[root@localhost package]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@localhost package]#
8. 檢查docker版本
[root@localhost package]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@localhost package]# docker version
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:20:16 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:23:58 2018
OS/Arch: linux/amd64
Experimental: false
安裝完成, 依賴包可自行百度查詢。
安裝過程也可參照如下連結:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21374452/viewspace-2726335/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 離線安裝 dockerDocker
- Docker 離線安裝 & 離線私有倉庫搭建總結Docker
- Docker 驗證 Centos7.2 離線安裝 Docker 環境DockerCentOS
- nuget離線安裝
- 離線安裝ansible
- CentOS離線安裝NginxCentOSNginx
- 離線安裝 Apache AmbariApache
- KubeSphere 3.3.0 離線安裝教程
- CDH6 離線安裝
- 如何離線安裝GitHub for windows?GithubWindows
- Cloudera Manager 離線安裝教程Cloud
- linux離線安裝redisLinuxRedis
- 離線安裝net6
- Linux離線安裝SVNLinux
- Ubuntu下離線安裝PostgreSQLUbuntuSQL
- linux離線安裝nginxLinuxNginx
- 寶塔皮膚離線版部署-離線版如何安裝?
- 正確離線安裝supervisor
- elasticsearch-head離線安裝Elasticsearch
- RedHat 6.5離線安裝GCC方法RedhatGC
- 【mysql】CentOS離線安裝配置MySqlMySqlCentOS
- salt-minion離線安裝
- Openshift 4.4 靜態 IP 離線安裝系列:初始安裝
- rhel9.2離線下載安裝包,並安裝
- Windows Homestead 離線安裝,帶盒子連線Windows
- docker 安裝redis 以及配置連線DockerRedis
- 怎麼離線安裝vue環境Vue
- rpm方式離線安裝ansible
- linux離線安裝mysql5.7LinuxMySql
- centOS 7 離線安裝 MySQL 5.6 完美安裝CentOSMySql
- Openshift 4.4 靜態 IP 離線安裝系列:準備離線資源
- Window離線環境下如何安裝pyhanlpHanLP
- python 離線依賴包打包&安裝Python
- python離線安裝外部依賴包Python
- 基於linux下unzip離線安裝Linux
- Windows 8 下離線安裝.NET Framework 3.5WindowsFramework
- Android SDK4.0 離線安裝方法Android
- 離線安裝Silverlight3