Docker常用命令

启动容器:

1
docker run <container_name>

连接容器

1
2
3
docker exec -it <container_name> /bin/bash

ssh <container_name>

启动本地容器

1
docker start <container_name>
script>