-
<CentOS7> Docker ce & Docker compose 설치Flower in my ops/CI\CD 2020. 11. 25. 11:52
Docker ce (docs.docker.com/engine/install/centos/)
- sudo yum install -y yum-utils
- sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- sudo yum-config-manager --enable docker-ce-nightly
- sudo yum-config-manager --enable docker-ce-test
- sudo yum-config-manager --disable docker-ce-nightly
- sudo yum install -y docker-ce docker-ce-cli containerd.io
- sudo systemctl start docker
- sudo docker run hello-world
- docker --version
Docker compose (docs.docker.com/compose/install/)
- sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
- docker-compose --version
더보기[vagrant ~]$ sudo yum install -y yum-utils Failed to set locale, defaulting to C Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.9 kB 00:00:00 * base: ftp.riken.jp * epel: ftp.riken.jp * extras: ftp.riken.jp * updates: mirror.kakao.com base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 kubernetes/x86_64/signature | 454 B 00:00:00 kubernetes/x86_64/signature | 1.4 kB 00:00:00 !!! updates | 2.9 kB 00:00:00 Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help). --> Running transaction check ---> Package yum-utils.noarch 0:1.1.31-45.el7 will be updated ---> Package yum-utils.noarch 0:1.1.31-54.el7_8 will be an update --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================== Updating: yum-utils noarch 1.1.31-54.el7_8 base 122 k Transaction Summary =============================================================================================================================================== Upgrade 1 Package Total download size: 122 k Downloading packages: yum-utils-1.1.31-54.el7_8.noarch.rpm | 122 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : yum-utils-1.1.31-54.el7_8.noarch 1/2 Cleanup : yum-utils-1.1.31-45.el7.noarch 2/2 Verifying : yum-utils-1.1.31-54.el7_8.noarch 1/2 Verifying : yum-utils-1.1.31-45.el7.noarch 2/2 Updated: yum-utils.noarch 0:1.1.31-54.el7_8 Complete! [vagrant ~]$ sudo yum-config-manager \ > --add-repo \ > https://download.docker.com/linux/centos/docker-ce.repo Failed to set locale, defaulting to C Loaded plugins: fastestmirror 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 [vagrant ~]$ sudo yum install docker-ce docker-ce-cli containerd.io Failed to set locale, defaulting to C Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.9 kB 00:00:00 * base: ftp.riken.jp * epel: ftp.riken.jp * extras: ftp.riken.jp * updates: mirror.kakao.com base | 3.6 kB 00:00:00 docker-ce-stable | 3.5 kB 00:00:00 extras | 2.9 kB 00:00:00 kubernetes/x86_64/signature | 454 B 00:00:00 kubernetes/x86_64/signature | 1.4 kB 00:00:00 !!! updates | 2.9 kB 00:00:00 (1/2): docker-ce-stable/7/x86_64/updateinfo | 55 B 00:00:00 (2/2): docker-ce-stable/7/x86_64/primary_db | 46 kB 00:00:00 Resolving Dependencies There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help). --> Running transaction check ---> Package containerd.io.x86_64 0:1.3.7-3.1.el7 will be installed --> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.3.7-3.1.el7.x86_64 ---> Package docker-ce.x86_64 3:19.03.13-3.el7 will be installed --> Processing Dependency: libcgroup for package: 3:docker-ce-19.03.13-3.el7.x86_64 ---> Package docker-ce-cli.x86_64 1:19.03.13-3.el7 will be installed --> Running transaction check ---> Package container-selinux.noarch 2:2.119.2-1.911c772.el7_8 will be installed --> Processing Dependency: selinux-policy-targeted >= 3.13.1-216.el7 for package: 2:container-selinux-2.119.2-1.911c772.el7_8.noarch --> Processing Dependency: selinux-policy-base >= 3.13.1-216.el7 for package: 2:container-selinux-2.119.2-1.911c772.el7_8.noarch --> Processing Dependency: selinux-policy >= 3.13.1-216.el7 for package: 2:container-selinux-2.119.2-1.911c772.el7_8.noarch --> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.119.2-1.911c772.el7_8.noarch ---> Package libcgroup.x86_64 0:0.41-21.el7 will be installed --> Running transaction check ---> Package policycoreutils-python.x86_64 0:2.5-34.el7 will be installed --> Processing Dependency: policycoreutils = 2.5-34.el7 for package: policycoreutils-python-2.5-34.el7.x86_64 --> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-34.el7.x86_64 --> Processing Dependency: libsemanage-python >= 2.5-14 for package: policycoreutils-python-2.5-34.el7.x86_64 --> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-34.el7.x86_64 --> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-34.el7.x86_64 --> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64 --> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64 --> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64 --> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-34.el7.x86_64 --> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64 --> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-34.el7.x86_64 ---> Package selinux-policy.noarch 0:3.13.1-192.el7_5.3 will be updated ---> Package selinux-policy.noarch 0:3.13.1-268.el7_9.2 will be an update --> Processing Dependency: libsemanage >= 2.5-13 for package: selinux-policy-3.13.1-268.el7_9.2.noarch ---> Package selinux-policy-targeted.noarch 0:3.13.1-192.el7_5.3 will be updated ---> Package selinux-policy-targeted.noarch 0:3.13.1-268.el7_9.2 will be an update --> Running transaction check ---> Package audit-libs-python.x86_64 0:2.8.5-4.el7 will be installed --> Processing Dependency: audit-libs(x86-64) = 2.8.5-4.el7 for package: audit-libs-python-2.8.5-4.el7.x86_64 ---> Package checkpolicy.x86_64 0:2.5-8.el7 will be installed ---> Package libsemanage.x86_64 0:2.5-11.el7 will be updated ---> Package libsemanage.x86_64 0:2.5-14.el7 will be an update --> Processing Dependency: libsepol >= 2.5-10 for package: libsemanage-2.5-14.el7.x86_64 --> Processing Dependency: libselinux >= 2.5-14 for package: libsemanage-2.5-14.el7.x86_64 ---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be installed ---> Package policycoreutils.x86_64 0:2.5-22.el7 will be updated ---> Package policycoreutils.x86_64 0:2.5-34.el7 will be an update --> Processing Dependency: libselinux-utils >= 2.5-14 for package: policycoreutils-2.5-34.el7.x86_64 ---> Package python-IPy.noarch 0:0.75-6.el7 will be installed ---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be installed --> Running transaction check ---> Package audit-libs.x86_64 0:2.8.1-3.el7 will be updated --> Processing Dependency: audit-libs(x86-64) = 2.8.1-3.el7 for package: audit-2.8.1-3.el7.x86_64 ---> Package audit-libs.x86_64 0:2.8.5-4.el7 will be an update ---> Package libselinux.x86_64 0:2.5-12.el7 will be updated --> Processing Dependency: libselinux(x86-64) = 2.5-12.el7 for package: libselinux-python-2.5-12.el7.x86_64 ---> Package libselinux.x86_64 0:2.5-15.el7 will be an update ---> Package libselinux-utils.x86_64 0:2.5-12.el7 will be updated ---> Package libselinux-utils.x86_64 0:2.5-15.el7 will be an update ---> Package libsepol.x86_64 0:2.5-8.1.el7 will be updated ---> Package libsepol.x86_64 0:2.5-10.el7 will be an update --> Running transaction check ---> Package audit.x86_64 0:2.8.1-3.el7 will be updated ---> Package audit.x86_64 0:2.8.5-4.el7 will be an update ---> Package libselinux-python.x86_64 0:2.5-12.el7 will be updated ---> Package libselinux-python.x86_64 0:2.5-15.el7 will be an update --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================== Installing: containerd.io x86_64 1.3.7-3.1.el7 docker-ce-stable 29 M docker-ce x86_64 3:19.03.13-3.el7 docker-ce-stable 24 M docker-ce-cli x86_64 1:19.03.13-3.el7 docker-ce-stable 38 M Installing for dependencies: audit-libs-python x86_64 2.8.5-4.el7 base 76 k checkpolicy x86_64 2.5-8.el7 base 295 k container-selinux noarch 2:2.119.2-1.911c772.el7_8 extras 40 k libcgroup x86_64 0.41-21.el7 base 66 k libsemanage-python x86_64 2.5-14.el7 base 113 k policycoreutils-python x86_64 2.5-34.el7 base 457 k python-IPy noarch 0.75-6.el7 base 32 k setools-libs x86_64 3.3.8-4.el7 base 620 k Updating for dependencies: audit x86_64 2.8.5-4.el7 base 256 k audit-libs x86_64 2.8.5-4.el7 base 102 k libselinux x86_64 2.5-15.el7 base 162 k libselinux-python x86_64 2.5-15.el7 base 236 k libselinux-utils x86_64 2.5-15.el7 base 151 k libsemanage x86_64 2.5-14.el7 base 151 k libsepol x86_64 2.5-10.el7 base 297 k policycoreutils x86_64 2.5-34.el7 base 917 k selinux-policy noarch 3.13.1-268.el7_9.2 updates 498 k selinux-policy-targeted noarch 3.13.1-268.el7_9.2 updates 7.0 M Transaction Summary =============================================================================================================================================== Install 3 Packages (+ 8 Dependent packages) Upgrade ( 10 Dependent packages) Total download size: 103 M Is this ok [y/d/N]: y Downloading packages: (1/21): audit-2.8.5-4.el7.x86_64.rpm | 256 kB 00:00:00 (2/21): audit-libs-python-2.8.5-4.el7.x86_64.rpm | 76 kB 00:00:00 (3/21): container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm | 40 kB 00:00:00 (4/21): audit-libs-2.8.5-4.el7.x86_64.rpm | 102 kB 00:00:00 (5/21): checkpolicy-2.5-8.el7.x86_64.rpm | 295 kB 00:00:00 warning: /var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-ce-19.03.13-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY Public key for docker-ce-19.03.13-3.el7.x86_64.rpm is not installed (6/21): docker-ce-19.03.13-3.el7.x86_64.rpm | 24 MB 00:00:01 (7/21): libcgroup-0.41-21.el7.x86_64.rpm | 66 kB 00:00:00 (8/21): containerd.io-1.3.7-3.1.el7.x86_64.rpm | 29 MB 00:00:01 (9/21): libselinux-python-2.5-15.el7.x86_64.rpm | 236 kB 00:00:00 (10/21): libselinux-utils-2.5-15.el7.x86_64.rpm | 151 kB 00:00:00 (11/21): libselinux-2.5-15.el7.x86_64.rpm | 162 kB 00:00:00 (12/21): libsemanage-python-2.5-14.el7.x86_64.rpm | 113 kB 00:00:00 (13/21): libsepol-2.5-10.el7.x86_64.rpm | 297 kB 00:00:00 (14/21): policycoreutils-python-2.5-34.el7.x86_64.rpm | 457 kB 00:00:00 (15/21): python-IPy-0.75-6.el7.noarch.rpm | 32 kB 00:00:00 (16/21): selinux-policy-3.13.1-268.el7_9.2.noarch.rpm | 498 kB 00:00:00 (17/21): libsemanage-2.5-14.el7.x86_64.rpm | 151 kB 00:00:00 (18/21): setools-libs-3.3.8-4.el7.x86_64.rpm | 620 kB 00:00:00 (19/21): policycoreutils-2.5-34.el7.x86_64.rpm | 917 kB 00:00:00 (20/21): selinux-policy-targeted-3.13.1-268.el7_9.2.noarch.rpm | 7.0 MB 00:00:00 (21/21): docker-ce-cli-19.03.13-3.el7.x86_64.rpm | 38 MB 00:00:00 ----------------------------------------------------------------------------------------------------------------------------------------------- Total 49 MB/s | 103 MB 00:00:02 Retrieving key from https://download.docker.com/linux/centos/gpg 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 Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : libsepol-2.5-10.el7.x86_64 1/31 Updating : libselinux-2.5-15.el7.x86_64 2/31 Updating : audit-libs-2.8.5-4.el7.x86_64 3/31 Updating : libsemanage-2.5-14.el7.x86_64 4/31 Updating : libselinux-utils-2.5-15.el7.x86_64 5/31 Updating : policycoreutils-2.5-34.el7.x86_64 6/31 Updating : selinux-policy-3.13.1-268.el7_9.2.noarch 7/31 Installing : libcgroup-0.41-21.el7.x86_64 8/31 Updating : selinux-policy-targeted-3.13.1-268.el7_9.2.noarch 9/31 Installing : libsemanage-python-2.5-14.el7.x86_64 10/31 Installing : audit-libs-python-2.8.5-4.el7.x86_64 11/31 Installing : setools-libs-3.3.8-4.el7.x86_64 12/31 Updating : libselinux-python-2.5-15.el7.x86_64 13/31 Installing : 1:docker-ce-cli-19.03.13-3.el7.x86_64 14/31 Installing : python-IPy-0.75-6.el7.noarch 15/31 Installing : checkpolicy-2.5-8.el7.x86_64 16/31 Installing : policycoreutils-python-2.5-34.el7.x86_64 17/31 Installing : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 18/31 setsebool: SELinux is disabled. Installing : containerd.io-1.3.7-3.1.el7.x86_64 19/31 Installing : 3:docker-ce-19.03.13-3.el7.x86_64 20/31 Updating : audit-2.8.5-4.el7.x86_64 21/31 Cleanup : selinux-policy-targeted-3.13.1-192.el7_5.3.noarch 22/31 Cleanup : selinux-policy-3.13.1-192.el7_5.3.noarch 23/31 Cleanup : policycoreutils-2.5-22.el7.x86_64 24/31 Cleanup : libsemanage-2.5-11.el7.x86_64 25/31 Cleanup : libselinux-utils-2.5-12.el7.x86_64 26/31 Cleanup : libselinux-python-2.5-12.el7.x86_64 27/31 Cleanup : libselinux-2.5-12.el7.x86_64 28/31 Cleanup : audit-2.8.1-3.el7.x86_64 29/31 Cleanup : audit-libs-2.8.1-3.el7.x86_64 30/31 Cleanup : libsepol-2.5-8.1.el7.x86_64 31/31 Verifying : containerd.io-1.3.7-3.1.el7.x86_64 1/31 Verifying : libselinux-2.5-15.el7.x86_64 2/31 Verifying : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 3/31 Verifying : selinux-policy-3.13.1-268.el7_9.2.noarch 4/31 Verifying : selinux-policy-targeted-3.13.1-268.el7_9.2.noarch 5/31 Verifying : audit-libs-2.8.5-4.el7.x86_64 6/31 Verifying : checkpolicy-2.5-8.el7.x86_64 7/31 Verifying : policycoreutils-2.5-34.el7.x86_64 8/31 Verifying : python-IPy-0.75-6.el7.noarch 9/31 Verifying : libselinux-utils-2.5-15.el7.x86_64 10/31 Verifying : policycoreutils-python-2.5-34.el7.x86_64 11/31 Verifying : setools-libs-3.3.8-4.el7.x86_64 12/31 Verifying : audit-2.8.5-4.el7.x86_64 13/31 Verifying : libsemanage-python-2.5-14.el7.x86_64 14/31 Verifying : libsemanage-2.5-14.el7.x86_64 15/31 Verifying : libselinux-python-2.5-15.el7.x86_64 16/31 Verifying : 3:docker-ce-19.03.13-3.el7.x86_64 17/31 Verifying : audit-libs-python-2.8.5-4.el7.x86_64 18/31 Verifying : libsepol-2.5-10.el7.x86_64 19/31 Verifying : 1:docker-ce-cli-19.03.13-3.el7.x86_64 20/31 Verifying : libcgroup-0.41-21.el7.x86_64 21/31 Verifying : libsemanage-2.5-11.el7.x86_64 22/31 Verifying : libselinux-python-2.5-12.el7.x86_64 23/31 Verifying : audit-libs-2.8.1-3.el7.x86_64 24/31 Verifying : selinux-policy-targeted-3.13.1-192.el7_5.3.noarch 25/31 Verifying : policycoreutils-2.5-22.el7.x86_64 26/31 Verifying : audit-2.8.1-3.el7.x86_64 27/31 Verifying : selinux-policy-3.13.1-192.el7_5.3.noarch 28/31 Verifying : libsepol-2.5-8.1.el7.x86_64 29/31 Verifying : libselinux-2.5-12.el7.x86_64 30/31 Verifying : libselinux-utils-2.5-12.el7.x86_64 31/31 Installed: containerd.io.x86_64 0:1.3.7-3.1.el7 docker-ce.x86_64 3:19.03.13-3.el7 docker-ce-cli.x86_64 1:19.03.13-3.el7 Dependency Installed: audit-libs-python.x86_64 0:2.8.5-4.el7 checkpolicy.x86_64 0:2.5-8.el7 container-selinux.noarch 2:2.119.2-1.911c772.el7_8 libcgroup.x86_64 0:0.41-21.el7 libsemanage-python.x86_64 0:2.5-14.el7 policycoreutils-python.x86_64 0:2.5-34.el7 python-IPy.noarch 0:0.75-6.el7 setools-libs.x86_64 0:3.3.8-4.el7 Dependency Updated: audit.x86_64 0:2.8.5-4.el7 audit-libs.x86_64 0:2.8.5-4.el7 libselinux.x86_64 0:2.5-15.el7 libselinux-python.x86_64 0:2.5-15.el7 libselinux-utils.x86_64 0:2.5-15.el7 libsemanage.x86_64 0:2.5-14.el7 libsepol.x86_64 0:2.5-10.el7 policycoreutils.x86_64 0:2.5-34.el7 selinux-policy.noarch 0:3.13.1-268.el7_9.2 selinux-policy-targeted.noarch 0:3.13.1-268.el7_9.2 Complete! [vagrant ~]$ yum list docker-ce --showduplicates | sort -r Failed to set locale, defaulting to C docker-ce.x86_64 3:19.03.9-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.8-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.7-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.6-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.5-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.4-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.3-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.2-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.13-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.13-3.el7 @docker-ce-stable docker-ce.x86_64 3:19.03.12-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.11-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.10-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.1-3.el7 docker-ce-stable docker-ce.x86_64 3:19.03.0-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.9-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.8-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.7-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.6-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.5-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.4-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.3-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.2-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.1-3.el7 docker-ce-stable docker-ce.x86_64 3:18.09.0-3.el7 docker-ce-stable docker-ce.x86_64 18.06.3.ce-3.el7 docker-ce-stable docker-ce.x86_64 18.06.2.ce-3.el7 docker-ce-stable docker-ce.x86_64 18.06.1.ce-3.el7 docker-ce-stable docker-ce.x86_64 18.06.0.ce-3.el7 docker-ce-stable docker-ce.x86_64 18.03.1.ce-1.el7.centos docker-ce-stable docker-ce.x86_64 18.03.0.ce-1.el7.centos docker-ce-stable docker-ce.x86_64 17.12.1.ce-1.el7.centos docker-ce-stable docker-ce.x86_64 17.12.0.ce-1.el7.centos docker-ce-stable docker-ce.x86_64 17.09.1.ce-1.el7.centos docker-ce-stable docker-ce.x86_64 17.09.0.ce-1.el7.centos docker-ce-stable docker-ce.x86_64 17.06.2.ce-1.el7.centos docker-ce-stable docker-ce.x86_64 17.06.1.ce-1.el7.centos docker-ce-stable docker-ce.x86_64 17.06.0.ce-1.el7.centos docker-ce-stable docker-ce.x86_64 17.03.3.ce-1.el7 docker-ce-stable docker-ce.x86_64 17.03.2.ce-1.el7.centos docker-ce-stable docker-ce.x86_64 17.03.1.ce-1.el7.centos docker-ce-stable docker-ce.x86_64 17.03.0.ce-1.el7.centos docker-ce-stable Loading mirror speeds from cached hostfile Loaded plugins: fastestmirror Installed Packages Available Packages * updates: mirror.kakao.com * extras: ftp.riken.jp * epel: ftp.riken.jp * base: ftp.riken.jp [vagrant ~]$ sudo yum install docker-ce-<VERSION_STRING> ^Ccker-ce-cli-<VERSION_STRING> containerd.io [vagrant ~]$ sudo systemctl start docker [vagrant ~]$ sudo docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 0e03bdcc26d7: Pull complete Digest: sha256:e7c70bb24b462baa86c102610182e3efcb12a04854e8c582838d92970a09f323 Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/ For more examples and ideas, visit: https://docs.docker.com/get-started/ [vagrant ~]$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [vagrant ~]$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 208c4c339970 hello-world "/hello" 27 seconds ago Exited (0) 26 seconds ago frosty_black [vagrant ~]$ sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 651 100 651 0 0 1459 0 --:--:-- --:--:-- --:--:-- 1459 100 11.6M 100 11.6M 0 0 3254k 0 0:00:03 0:00:03 --:--:-- 4279k [vagrant ~]$ sudo chmod +x /usr/local/bin/docker-compose [vagrant ~]$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose [vagrant ~]$ docker-compose --version docker-compose version 1.27.4, build 40524192
'Flower in my ops > CI\CD' 카테고리의 다른 글
<Docker> Nginx Image 생성 (0) 2020.12.01 <Docker> 명령어 (0) 2020.11.30 <Docker> docker-compose로 한번에 구축 (0) 2020.11.30 <Docker> local(private) registry 구축 (0) 2020.11.25