Install use apt
sudo apt install docker.io
Setup autostart
sudo systemctl enable docker
Start service
sudo systemctl start docker
Search image
sudo docker search ubuntu
Pull image
sudo docker pull ubuntu
Show images
sudo docker images
Start a container from image
sudo docker run -d -p 50443:8000 -h gateone01 --name gateone liftoff/gateone gateone
Stop docker by name
sudo docker stop gateone
Start docker by name
sudo docker start gateone
获取容器信息
sudo docker ps -a
进入到容器中
sudo docker exec -it 8875a63da501 bash
Remove container
sudo docker container rm test-container