最小化容器
ctrl + p + q
恢复容器
docker exec -it userdockername bash
运行容器
docker run -it --name userdockername -v /e/docker/docker_volume:/data node:latest /bin/bash
(windows 环境下需要在Resources -> File Sharing 中添加 e 盘目录)
删除镜像
docker rmi imageName:tag
docker run
--detach , -d Run container in background and print container ID
--interactive , -i Keep STDIN open even if not attached
--tty , -t Allocate a pseudo-TTY
--name Assign a name to the container
--publish , -p Publish a container’s port(s) to the host
--volume , -v Bind mount a volume