프로그램 사용/docker2018. 11. 23. 08:57

docker 사용법

docker는 container 기반으로

콘솔창에서 attach해서 사용할 수 도

내부의 특정 프로그램을 실행해서 접속할 수 도

SSH를 통해서 접속할 수 도 있다.


[링크 : http://pyrasis.com/Docker/Docker-HOWTO]

[링크 : https://docs.docker.com/get-started/]


+

centos 7에 docker 깔기

[링크 : https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7]



헐.. 별별 이름의 도커 컨테이너가 다 있네 ㄷㄷ

# docker run hello-world

Unable to find image 'hello-world:latest' locally

latest: Pulling from library/hello-world

d1725b59e92d: Pull complete

Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788

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/ 


'프로그램 사용 > docker' 카테고리의 다른 글

docker 개념 다시 조사..  (0) 2019.02.01
docker 설명..  (0) 2019.02.01
docker run = create + start  (0) 2019.02.01
docker static ip  (0) 2018.11.23
freebsd jail / docker  (0) 2015.07.27
Posted by 구차니