1 개요[ | ]
- docker run -it ubuntu bash
Console
Copy
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
Console
Copy
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 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.