Docker run -it ubuntu

(Docker run -it ubuntu bash에서 넘어옴)

1 개요[ | ]

docker run -it ubuntu bash
root@zetawiki:~# docker run -it ubuntu
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
1be7f2b886e8: Pull complete 
6fbc4a21b806: Pull complete 
c71a6f8e1378: Pull complete 
4be3072e5a37: Pull complete 
06c6d2f59700: Pull complete 
Digest: sha256:e27e9d7f7f28d67aa9e2d7540bdc2b33254b452ee8e60f388875e5b7d9b2b696
Status: Downloaded newer image for ubuntu:latest
root@f7c2b7017f32:/# cat /etc/issue
Ubuntu 16.04.3 LTS \n \l

root@f7c2b7017f32:/# exit
exit
root@zetawiki:~# docker ps -a | grep f7c2b7017f32
f7c2b7017f32        ubuntu              "bash"              13 seconds ago      Exited (0) 9 seconds ago                       pensive_villani
root@zetaknow:~# docker start f7c2b7017f32
f7c2b7017f32
root@zetaknow:~# docker ps -a | grep f7c2b7017f32
f7c2b7017f32        ubuntu              "bash"              44 seconds ago      Up 2 seconds                                   pensive_villani
root@zetaknow:~# docker exec -it f7c2b7017f32 bash
root@f7c2b7017f32:/#

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}