1. View Docker information (version, info)# View the Docker version$docker version# Displays information about the Docker system$docker Info2. Operation on image (search, pull, images, RMI, history)# Retrieve image$docker Search I
1. Docker versionDisplays the Docker version information.2. Docker InfoDisplays Docker system information, including the number of mirrors and containers.3. Docker SearchDocker search [options ' o ';] TermDocker Search-s DjangoSearch for eligible mirrors from the
1. View docker information (version, info)
# view Docker version
$docker version
# Displays information about the Docker system
$docker Info
2. Operation on image (search, pull, images, RMI, history)
# Retrieve image
$docker s
Common commands for Docker images
1. Search image
Docker Search Java
The table contains five columns:
-name: Mirror Warehouse Name
-description: Mirrored Warehouse Description
-stars: The number of mirrored warehouse collections, indicating the popularity of the mirrored warehouse, similar to the STARS of GitHub
-offical: Indicates whether it is an official ware
the only process for the container, so when the process is finished, the container will stop completely.# run the "echo" command in the container and output "Hello Word" Hello Word " # Interactive entry into the container -i-t image_name/bin/Bash # Install new program in container $docker run image_name Apt -GetNote: When executing the apt-get command, take the-y parameter. If you do not specify the-y parameter, the apt-get command enters
-t) View Container
List all currently running container
$docker PS
List all running container in one row (very clear when the container is many)
| -S
List all the container
-a
List the most recently launched container
Docker service is a declarative, scalable, load-balanced application. Docker service is a user-oriented application, while Docker swarm is an IT-oriented node cluster.
Docker service is often run on the basis of Docker swarm.
Common
Introduction to docker practical commands
1. Start, close, and stop docker
╭─wil-xz in ~ 12:15:44
╰─?(?﹏?、)? service docker restart Redirecting to /bin/systemctl restart docker.service
╭─
containerid# stop the running Docker CentOS Terminal Docker stop 0a2b06b59448# attached to the Docker terminal container, provided this container is already running in Docker Attach 3b6165b7504a# lists all the ContainerdockerPS-a# Print Docker's running terminal shows Docker
1. View Docker information (version, info)
[Plain] View plaincopy
# View the Docker version
$docker version
# Displays information about the Docker system
$docker Info
2. Operation on image (search, pull, images, RMI, history)
[Plain] Vie
Common Docker commands, and some pits
Common Commands
View the root user password for the container
Docker logs
Because the root user's password is randomly assigned when the Docker container starts. Therefore, the password of the root user of the Redmine container can b
I recently am playing with Docker, an application container and a virtual technology for Linux. It is so cool that it takes only a few minutes to create a Docker image and container. All work is out-of-the-box.
Before I finish my day's work, I hope to save my work. But I am messy between the save and export commands of Docker
$$proxy_add_x_forwarded_for; # When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings. proxy_set_header X-Forwarded-Proto $$scheme; proxy_buffering off; proxy_request_buffering off; }
Therefore, if your docker version is too old, it will request/V1, and the error will always be reported.
This article mainly explains the underlying execution pro
UBUNTU14 version above comes with Docker but version older sudo apt-get install-y docker.iosudo ln-s/usr/bin/docker/usr/local/bin/dockersudo sed-i ' $a Complet-f _docker Docker '/etc/bash_completion.d/docker ufw:vim/etc/default/ufw default_forward_policy = ' ACCEPT ' Sud o UFW Reload
1. Using Docker run to create a Docker container (Docker commands are all started with Docker) after the Docker is installed, most of the time this machine does not typically have a docker
Mirror1. Get the mirrored Docker pull dl.dockerpool.com:5000/ubuntu:14.04 (dl.dockerpool.com is the registered server, 5000 is the port number, Ubuntu is the warehouse name, 14.04 is the image is the version number ) 2. View the image information Docker images (list all mirrors that are already in the local host) change the changes information
directory/root/docker-mount-e Set the time zone for the Docker virtual machine to Asia/shanghaiOptional parameter--privileged=true, if the Mount directory does not have permissions, add this parameterDocker run--privileged=true-i-t-p 8888:8888-p 8025:8025-p 80:80-v/home/docker-mount:/root/docker-mount-e "TZ=Asia /shan
Objective
Docker is a very interesting project. It claims to be able to ease the difficulty of deploying servers, and of course I believe there is hype in it. But after the actual use, I think the performance of Docker is commendable. This article mainly summarizes the Docker clear container mirror common commands, le
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.