1. 程式人生 > >docker: 為執行的container增加多個埠

docker: 為執行的container增加多個埠

1. list all docker process and stop running container test01

docker ps -a

docker stop test01

2. commit the container

docker commit test01 test02

NOTE: test02 是新的image name       

3. re-run from the commited image

docker run -p 8080:8080 -p 80:80-td test02