게시물 3건
 
[docker] docker install on centos8
글쓴이 : theko 날짜 : 2020-08-11 (화) 13:54 조회 : 330
1. 사전 패키지 설치
# yum install -y yum-utils
# yum-config-manager  --add-repo  https://download.docker.com/linux/centos/docker-ce.repo


2. docker 설치 및 기동
# yum list docker-ce --showduplicates | sort -r

# yum install docker-ce-18.03.1.ce-1.el7.centos

# systemctl start docker
# systemctl status docker

3. TEST 
# docker run hello-world

//아래 문구가 표시되면 완료
// 혹 아래 문구가 안나오면 방화벽 문제
==================
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
0e03bdcc26d7: Pull complete
Digest: sha256:49a1c8800c94df04e9658809b006fd8a686cab8028d33cfba2cc049724254202
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/
=============================



이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
 

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com