Docker Foundation Command II

Source: Internet
Author: User
Tags docker ps docker run

Open/Stop/restart

To view a container that is currently running
Docker PS

View all containers that have been stopped
Docker Ps-a

Displays a container that is up to date
Docker Ps-l

Create a new container to run
Docker run

Start a container
Docker Run <containner_id>

Close a container
Docker Stop <containner_id>

Restart a container
Docker Restart <containner_id>

Connect to a container that is in Operation--sig-proxy=false
Docker Attach--sig-proxy=false <containner_id>

View the underlying information for an image or container
Docker Inspect--format= ' {{}} ' <container_id>

Delete Container
Docker RM <container_id/container_name>
To remove all stopped containers
Docker RM $ (Docker ps-a-Q)

Remove Mirror
Docker RMI <image_id/image_name>

Using Configuration generation
Docker Build

Docker Foundation Command II

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.