Skip to content

Instantly share code, notes, and snippets.

@wh1t3p1g
Last active December 6, 2018 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wh1t3p1g/65da1a5c2208e56c2f0cb86fce7baac4 to your computer and use it in GitHub Desktop.
Save wh1t3p1g/65da1a5c2208e56c2f0cb86fce7baac4 to your computer and use it in GitHub Desktop.
docker ps -l 查看正在运行的镜像信息
docker run -it name 运行镜像
docker inspect id 查看镜像
docker commit -m "What did you do to the image" -a "Author Name" container-id repository/new_image_name 保存状态
docker stop id 停止当前正在运行的容器
docker login -u username 登陆
docker push docker-registry-username/docker-image-name 推送到远程
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment