可使用以下命令,安装 Docker :
yum -y install docker
[root@localhost pluginconf.d]#yum -y install docker base | 3.6 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package docker.x86_64 2:1.12.6-71.git3e8e77d.el7.centos.1 will be installed --> Processing Dependency: docker-common = 2:1.12.6-71.git3e8e77d.el7.centos.1 for package: 2:docker-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 --> Processing Dependency: docker-client = 2:1.12.6-71.git3e8e77d.el7.centos.1 for package: 2:docker-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 --> Running transaction check ---> Package docker-client.x86_64 2:1.12.6-71.git3e8e77d.el7.centos.1 will be installed ---> Package docker-common.x86_64 2:1.12.6-71.git3e8e77d.el7.centos.1 will be installed --> Processing Dependency: skopeo-containers >= 0.1.24-3 for package: 2:docker-common-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 --> Processing Dependency: oci-umount >= 2:2.0.0-1 for package: 2:docker-common-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 --> Processing Dependency: oci-systemd-hook >= 1:0.1.4-9 for package: 2:docker-common-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 --> Processing Dependency: oci-register-machine >= 1:0-3.14 for package: 2:docker-common-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 --> Processing Dependency: container-storage-setup >= 0.7.0-1 for package: 2:docker-common-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 --> Processing Dependency: container-selinux >= 2:2.21-2 for package: 2:docker-common-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 --> Running transaction check ---> Package container-selinux.noarch 2:2.36-1.gitff95335.el7 will be installed ---> Package container-storage-setup.noarch 0:0.8.0-3.git1d27ecf.el7 will be installed ---> Package oci-register-machine.x86_64 1:0-3.14.gitcd1e331.el7 will be installed ---> Package oci-systemd-hook.x86_64 1:0.1.14-2.git9b1e622.el7 will be installed ---> Package oci-umount.x86_64 2:2.3.1-2.gitbf16163.el7 will be installed ---> Package skopeo-containers.x86_64 1:0.1.26-2.dev.git2e8377a.el7.centos will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: docker x86_64 2:1.12.6-71.git3e8e77d.el7.centos.1 extras 15 M Installing for dependencies: container-selinux noarch 2:2.36-1.gitff95335.el7 extras 31 k container-storage-setup noarch 0.8.0-3.git1d27ecf.el7 extras 33 k docker-client x86_64 2:1.12.6-71.git3e8e77d.el7.centos.1 extras 3.4 M docker-common x86_64 2:1.12.6-71.git3e8e77d.el7.centos.1 extras 83 k oci-register-machine x86_64 1:0-3.14.gitcd1e331.el7 extras 1.1 M oci-systemd-hook x86_64 1:0.1.14-2.git9b1e622.el7 extras 32 k oci-umount x86_64 2:2.3.1-2.gitbf16163.el7 extras 30 k skopeo-containers x86_64 1:0.1.26-2.dev.git2e8377a.el7.centos extras 12 k Transaction Summary ================================================================================ Install 1 Package (+8 Dependent packages) Total download size: 19 M Installed size: 66 M Downloading packages: (1/9): container-storage-setup-0.8.0-3.git1d27ecf.el7.noar | 33 kB 00:00 (2/9): container-selinux-2.36-1.gitff95335.el7.noarch.rpm | 31 kB 00:00 (3/9): docker-common-1.12.6-71.git3e8e77d.el7.centos.1.x86 | 83 kB 00:00 (4/9): oci-systemd-hook-0.1.14-2.git9b1e622.el7.x86_64.rpm | 32 kB 00:00 (5/9): oci-umount-2.3.1-2.gitbf16163.el7.x86_64.rpm | 30 kB 00:00 (6/9): skopeo-containers-0.1.26-2.dev.git2e8377a.el7.cento | 12 kB 00:00 (7/9): oci-register-machine-0-3.14.gitcd1e331.el7.x86_64.r | 1.1 MB 00:00 (8/9): docker-client-1.12.6-71.git3e8e77d.el7.centos.1.x86 | 3.4 MB 00:03 (9/9): docker-1.12.6-71.git3e8e77d.el7.centos.1.x86_64.rpm | 15 MB 02:32 -------------------------------------------------------------------------------- Total 130 kB/s | 19 MB 02:32 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 1:oci-systemd-hook-0.1.14-2.git9b1e622.el7.x86_64 1/9 Installing : container-storage-setup-0.8.0-3.git1d27ecf.el7.noarch 2/9 Installing : 1:oci-register-machine-0-3.14.gitcd1e331.el7.x86_64 3/9 Installing : 2:container-selinux-2.36-1.gitff95335.el7.noarch 4/9 Installing : 2:oci-umount-2.3.1-2.gitbf16163.el7.x86_64 5/9 Installing : 1:skopeo-containers-0.1.26-2.dev.git2e8377a.el7.centos.x86 6/9 Installing : 2:docker-common-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 7/9 Installing : 2:docker-client-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 8/9 Installing : 2:docker-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 9/9 Verifying : 2:docker-client-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 1/9 Verifying : 1:skopeo-containers-0.1.26-2.dev.git2e8377a.el7.centos.x86 2/9 Verifying : 2:oci-umount-2.3.1-2.gitbf16163.el7.x86_64 3/9 Verifying : 2:container-selinux-2.36-1.gitff95335.el7.noarch 4/9 Verifying : 1:oci-register-machine-0-3.14.gitcd1e331.el7.x86_64 5/9 Verifying : container-storage-setup-0.8.0-3.git1d27ecf.el7.noarch 6/9 Verifying : 2:docker-common-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 7/9 Verifying : 2:docker-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 8/9 Verifying : 1:oci-systemd-hook-0.1.14-2.git9b1e622.el7.x86_64 9/9 Installed: docker.x86_64 2:1.12.6-71.git3e8e77d.el7.centos.1 Dependency Installed: container-selinux.noarch 2:2.36-1.gitff95335.el7 container-storage-setup.noarch 0:0.8.0-3.git1d27ecf.el7 docker-client.x86_64 2:1.12.6-71.git3e8e77d.el7.centos.1 docker-common.x86_64 2:1.12.6-71.git3e8e77d.el7.centos.1 oci-register-machine.x86_64 1:0-3.14.gitcd1e331.el7 oci-systemd-hook.x86_64 1:0.1.14-2.git9b1e622.el7 oci-umount.x86_64 2:2.3.1-2.gitbf16163.el7 skopeo-containers.x86_64 1:0.1.26-2.dev.git2e8377a.el7.centos Complete!
可使用以下命令,查看 Docker 是否安装成功:
docker version
[root@localhost pluginconf.d]# docker version Client: Version: 1.12.6 API version: 1.24 Package version: docker-1.12.6-71.git3e8e77d.el7.centos.1.x86_64 Go version: go1.8.3 Git commit: 3e8e77d/1.12.6 Built: Tue Jan 30 09:17:00 2018 OS/Arch: linux/amd64 Cannot connect to the Docker daemon. Is the docker daemon running on this host?
若输出了 Docker 的版本号,则说明安装成功,我们下面就可以开始使用 Docker 了。
可通过以下命令启动 Docker 服务:
[root@localhost pluginconf.d]# service docker start Redirecting to /bin/systemctl start docker.service [root@localhost pluginconf.d]#
相关推荐
离线环境下,在centos7.6系统上安装docker-ce-19.03,nvidia-docker2.4版本,其中docker-ce-19.03在docker-local.tar压缩文件里面,nvidia-docker2在nvidia-docker2.zip文件中。 具体安装流程如下: 1.安装docker ...
Docker容器部署RuoYi-Vue...此次部署项目是我亲身经历,而且是一次性部署成功,没有部署超过两次甚至多次的情况,过程虽然很艰难,但结果还是很满意的,我希望大家用心去部署这个项目,你会发现部署这个项目其实不难
docker export做的镜像,需要cat centos_x86.tar |docker import - centos7:x86导入
说明:在最小化CentOS Linux release 7.6.1810 中制作yum源,docker-ce是centos 7系统x86架构rpm包。 使用: 1、上传文件到/data/docker-ce解压,或者任意目录后修改docker-ce-26.1.0.repo 中baseurl路径。 2、mv ...
在CentOS 7.6上离线安装Docker CE 19.03和Nvidia Docker 2可以按照以下步骤进行操作: 首先,您需要从Docker官方网站或Nvidia Docker官方网站下载对应版本的安装包。确保选择与您的操作系统和架构(例如x86_64)...
有docker.io-centos软件包,docker的centos镜像包!
docker-ce-20.10.13-3.el7.x86_64.rpm containerd.io-1.5.10-3.1.el7.x86_64.rpm docker-ce-cli-20.10.13-3.el7.x86_64.rpm docker-ce-rootless-extras-20.10.13-3.el7.x86_64.rpm docker-ce-selinux-17.03.3.ce-1....
docker-compose部署xxl-job方案
解压上传到服务器 安装docker sh install.sh docker-18.03.1-ce.tgz 卸载docker sh uninstall.sh ...安装docker-compose sh docker-compose.sh docker-compose-Linux-x86_64 如有不明白的欢迎随时咨询
centos 7 离线安装docker-engine-1.12.6 yum localinstall *.rpm Installing : docker-engine-1.12.6-1.el7.centos.x86_64 8/8 Verifying : libsemanage-python-2.5-11.el7.x86_64 1/8 Verifying : setools...
docker-ce-17.03.2.ce-1.el7.centos.x86_64 Centos7 离线安装包和依赖包、 audit-libs-python-2.7.6-3.el7.x86_64.rpm checkpolicy-2.5-4.el7.x86_64.rpm docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm docker-ce-...
标题中的“群晖 Docker-x64-17.05.0-0400.spk”指的是群晖NAS(Network Attached Storage)系统上的Docker软件包,适用于64位架构,版本号为17.05.0,且带有修订版号0400。这个SPK文件是群晖系统专用的软件安装包...
sudo yum install -y docker-ce docker-ce-cli containerd.io ``` 5. 启动Docker服务并设置开机启动: ```bash sudo systemctl start docker sudo systemctl enable docker ``` 接下来,我们处理NVIDIA-...
Ansible-docker-centos7-ansible.zip,用于Ansible Playbook和角色测试的CentOS 7 Docker容器。CentOS 7 Ansible测试图像,ansible是一个简单而强大的自动化引擎。它用于帮助配置管理、应用程序部署和任务自动化。
包含了docker-compose快速部署spiderflow的所有相关文件,包含docker-compose.yml,mysql, spiderflow.jar 可直接运行docker-compose up -d 启动容器。 数据库相关配置都可以通过docker-compose.yml修改。
这通常包括`docker-ce`, `docker-ce-cli`, 和`containerd.io`等组件。确保你已经包含了所有必要的文件,并将它们放入一个压缩包中,例如我们这里提到的`docker-ce-20.10.12`。 2. **上传到服务器**:将包含所有RPM...
snipe-it6.3.3镜像
此次部署项目是我亲身经历,而且是一次性部署成功,没有部署超过两次甚至多次的情况,过程虽然很艰难,但结果还是很满意的,我希望大家用心去部署这个项目,你会发现部署这个项目其实不难
centos6 不再支持直接使用yum安装, 可使用rpm包的安装低版本docker方式, docker 1.7.1
docker pull centminmod/docker-centos7-memcached 运行 docker 容器 docker run -d -p 11211:11211 -t centminmod/docker-centos7-memcached 或指定一个名称,例如 memc1 docker run --name memc1 -d -p 11211:...