windows安装docker步骤(Docker安装CommunityEdition社区版)

[root@centos2 docker]# curl -fsSL https://get.docker.com -o get-docker.sh [root@centos2 docker]# ls -rlt total 16 -rw-r--r--. 1 root root 13063 Apr 15 06:46 get-docker.sh ,接下来我们就来聊聊关于windows安装docker步骤?以下内容大家不妨参考一二希望能帮到您!

windows安装docker步骤(Docker安装CommunityEdition社区版)

windows安装docker步骤

[root@centos2 docker]# curl -fsSL https://get.docker.com -o get-docker.sh [root@centos2 docker]# ls -rlt total 16 -rw-r--r--. 1 root root 13063 Apr 15 06:46 get-docker.sh

[root@centos2 docker]# sh get-docker.sh # Executing docker install script, commit: 2f4ae48 sh -c 'yum install -y -q yum-utils' Package yum-utils-1.1.31-50.el7.noArch already installed and latest version sh -c 'yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo' Loaded plugins: fastestmirror, langpacks adding repo from: https://download.docker.com/linux/centos/docker-ce.repo grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo repo saved to /etc/yum.repos.d/docker-ce.repo '[' stable '!=' stable ']' sh -c 'yum makecache' Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.huaweicloud.com * extras: mirror.jdcloud.com * updates: mirror.jdcloud.com base | 3.6 kB 00:00:00 docker-ce-stable | 3.5 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/11): docker-ce-stable/x86_64/updateinfo | 55 B 00:00:01 (2/11): docker-ce-stable/x86_64/filelists_db | 14 kB 00:00:01 (3/11): docker-ce-stable/x86_64/primary_db | 27 kB 00:00:00 (4/11): docker-ce-stable/x86_64/other_db | 111 kB 00:00:01 (5/11): base/7/x86_64/other_db | 2.6 MB 00:00:09 (6/11): base/7/x86_64/filelists_db | 7.1 MB 00:00:14 extras/7/x86_64/filelists_db FAILED http://mirrors.njupt.edu.cn/centos/7.6.1810/extras/x86_64/repodata/2fa9bdefa3d7037822275e21a13f909c74d063d18a3925b6e528f9e2d76e0172-filelists.sqlite.bz2: [Errno 12] Timeout on http://10.10.254.10/cache/2/02/mirrors.njupt.edu.cn/1a0e1f02af5665a5b2baa8619a8be427/2fa9bdefa3d7037822275e21a13f909c74d063d18a3925b6e528f9e2d76e0172-filelists.sqlite.bz2: (28, 'Connection timed out after 30951 milliseconds') Trying other mirror. extras/7/x86_64/prestodelta FAILED http://mirrors.njupt.edu.cn/centos/7.6.1810/extras/x86_64/repodata/d8379207c9e4fcb835cfcc3ca01ec20415f22208563625ad2384f1b79279edba-prestodelta.xml.gz: [Errno 12] Timeout on http://10.10.254.10/cache/2/02/mirrors.njupt.edu.cn/a96de8f3604d1085b176dc9d72d5e703/d8379207c9e4fcb835cfcc3ca01ec20415f22208563625ad2384f1b79279edba-prestodelta.xml.gz: (28, 'Connection timed out after 30961 milliseconds') Trying other mirror. (7/11): extras/7/x86_64/other_db | 120 kB 00:00:00 (8/11): extras/7/x86_64/prestodelta | 52 kB 00:00:00 (9/11): extras/7/x86_64/filelists_db | 236 kB 00:00:00 (10/11): updates/7/x86_64/prestodelta | 487 kB 00:00:01 (11/11): updates/7/x86_64/filelists_db | 2.7 MB 00:00:02 Metadata Cache Created '[' -n '' ']' sh -c 'yum install -y -q docker-ce' warning: /var/cache/yum/x86_64/7/extras/packages/container-selinux-2.74-1.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Public key for container-selinux-2.74-1.el7.noarch.rpm is not installed warning: /var/cache/yum/x86_64/7/docker-ce-stable/packages/containerd.io-1.2.5-3.1.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY Public key for containerd.io-1.2.5-3.1.el7.x86_64.rpm is not installed Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-6.1810.2.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0x621E9F35: Userid : "Docker Release (CE rpm) <docker@docker.com>" Fingerprint: 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35 From : https://download.docker.com/linux/centos/gpg If you would like to use Docker as a non-root user, you should now consider adding your user to the "docker" group with something like: sudo usermod -aG docker your-user Remember that you will have to log out and back in for this to take effect! WARNING: Adding a user to the "docker" group will grant the ability to run containers which can be used to obtain root privileges on the docker host. Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface for more information.

[root@centos2 docker]# systemctl start docker [root@centos2 docker]# docker version Client: Version: 18.09.5 API version: 1.39 Go version: go1.10.8 Git commit: e8ff056 Built: Thu Apr 11 04:43:34 2019 OS/Arch: linux/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 18.09.5 API version: 1.39 (minimum version 1.12) Go version: go1.10.8 Git commit: e8ff056 Built: Thu Apr 11 04:13:40 2019 OS/Arch: linux/amd64 Experimental: false [root@centos2 docker]#

,

免责声明:本文仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。文章投诉邮箱:anhduc.ph@yahoo.com

    分享
    投诉
    首页