docker run -it --rm
时间: 2023-09-25 11:07:26 浏览: 122
docker run的–rm选项使用说明
5星 · 资源好评率100%
This command starts a Docker container in interactive mode and removes it after the container stops running.
The `-it` flag specifies that the container should be run in interactive mode, which means that the user can interact with the container's command line interface.
The `--rm` flag specifies that the container should be removed automatically when it stops running. This helps to save disk space by removing unused containers.
阅读全文