docker build -f dockfile -t tag:version . // to build one new image
docker run -itd -P -v data:/data
how to mount a new directory to docker run
1,docker commit contanerid new imagename // submit a new image
2,docker stop old
3,dock run....
docker build -f dockfile -t tag:version . // to build one new image
docker run -itd -P -v data:/data
how to mount a new directory to docker run
1,docker commit contanerid new imagename // submit a new image
2,docker stop old
3,dock run....
本文标题:docker
本文链接:https://www.haomeiwen.com/subject/albyiltx.html
网友评论