reference : http://bluese05.tistory.com/15
$ docker search ubuntu
$ docker pull ubuntu:latest
$ docker run -i -t --name ubuntu_ ubuntu /bin/bash
$ docker start ubuntu_
$ docker restart ubuntu_
$ docker attach ubuntu_
$ sudo docker commit -a "Foo Bar <foo@bar.com>" -m "add hello.txt" hello-nginx hello:0.2
docker commit <옵션> <컨테이너 이름> <이미지 이름>:<태그> 형식
마지막에 <이미지 이름>:<태그>는 저장 될 이미지 이름과 태그이다.
+) wordpress docker와 같은 경우 bash로 접속하고 싶다면,
docker exec -it [container number] bash
'소프트웨어 > Docker' 카테고리의 다른 글
[Docker] Docker compose with wordpress (0) | 2016.07.06 |
---|---|
[Docker] install, but error!! (include solution) (0) | 2016.07.05 |