How to use the Linux system Docker command

  

Using Docker on a Linux system can repeatedly deploy software in an environment, which makes it possible to publish products on the cloud platform. This article will introduce the use of Linux system Docker commands.

1. docker version

Docker display version information.

2. docker info

Display Docker system information, including images and containers.

3. docker search

docker search [options “o”"]

docker search -s django

Searching for matches from Docker Hub A mirror of the condition.

--automated lists only images of the automated build

type;

--no-trunc displays the full image description;

-s 40 List images with a number of favorites of 40.

4. docker pull

docker pull [-a “o”"] [user/“o”"]name[:tag “o”"]

docker pull laozhu/telescope:latest

Pull or update the specified image from Docker Hub.

-a Pull all tagged images.

5. docker login

root@moon:~# docker login

Username: username

Password: ****

Email: [email protected]

Login Succeeded

Enter the username, password and email address registered with Docker Hub to complete the login.

6. docker logout

Log out from the specified server after running, the default is the official server. Previous12345Next page Total 5 pages

Copyright © Windows knowledge All Rights Reserved