Commonly used commands in Docker

  •  View containers (-a represents a running container)
docker ps -a

  • Into the container
docker exec -i -t  容器ID或者容器的名字 /bin/bash

  • Restart the container
docker restart 容器名称或容器ID

 

Published 266 original articles · praised 17 · 10,000+ views

Guess you like

Origin blog.csdn.net/qq_18671415/article/details/105347320