基于Dockerfile构建图像
docker image build .以上结果是
docker run --rm -ti <IMAGE_ID>--rm:If instead you’d like Docker to automatically clean up the container and remove the file system when the container exits, you can add the --rm flag src:https://docs.docker.com/engine/reference/run/
-ti参数实现了什么?
发布于 2020-03-10 12:10:02
发布于 2020-03-10 12:08:08
它基本上只是-i和-t,它们大多是以-it的形式编写的。
-i
即使没有连接,也要打开STDIN
-t
分配伪TTY
请参阅:https://docs.docker.com/engine/reference/commandline/exec/
https://stackoverflow.com/questions/60617263
复制相似问题