Alibabacloud.com offers a wide variety of articles about docker list all containers, easily find your docker list all containers information here online.
6b11b19c4828594a2710c6ecbd721c50c3a4d296187c3c3c62d396081d256e64
Description
--name: The name of the container (can be customized)
-d-p 2,222:22 (using the host's 2222 port to map to the 22 port of the Docker container)
If you start an error,
Conflict. The name "/base" is already on use by container
Remove the old container and start again.
3. View Container:
Docker PS (view running
treats GID in the same way as the UID.
Many students simply understand the Docker container as a lightweight virtual machine, although this simplifies the difficulty of understanding container technology but it also leads to a lot of misunderstandings. In fact, unlike virtual machine technology: All containers running on the same host share the same kernel (the
make the following order.)$ sudo groupdel Docker$ sudo groupadd Docker$ sudo gpasswd-a ${user} docker sudo service docker restartIf there is also sudo vi/etc/group, for docker1.9.1,docker that line is: Docker:x:999:yournameNote:Verify that the influx and
How to delete docker images/containers
Docker images often occupy hard disk space unconsciously. To clear redundant images, you can use the following methods:
1. Enter the root permission
Sudo su
2. Stop all container to delete the images:
Docker stop $ (
When using Docker, we often encounter the application that I need two or more containers, some of which need to use the services provided by other containers. For example, we need a container to provide MySQL database services, while the other two containers are connected as clients to use the MySQL database service. L
Docker Mirrors:
First of all, we know that the operating system is divided into kernel and user space, compared to Linux, the kernel boot, will mount the root file system to provide user space support.
and Docker mirror image, it is equivalent to a root file system, but this file system is a little special, provide the container runtime needs of the program, libr
Let's start with today's two main characters: NFS and DockerWhat is NFS?The NFS (Network File system), which is one of the file systems supported by FreeBSD, allows computers in the network to share resources across TCP/IP networks. In an NFS application, a local NFS client application can transparently read and write to files located on the remote NFS server, just as you would access a local file. Excerpt from Baidu EncyclopediaWhat is Docker?This is
containers, This is hard to do with traditional virtual machine technology.The main issues that Docker solves(1) environmental dependenceFor example, Java's web development deployment environment needs to specify JDK version, Web server and its version, various jar packages and their versions, etc.Docker is a container that can be put into a specific version of the operating system, then install
For friends who know about the Docker container network, I think the network of virtual machines is not unfamiliar, after all, we are the people who follow this era to learn and progress together. Compared to Vm,docker's network is gradually maturing, this article mainly for the Macvlan to do a simple introduction.Why Macvlan?First we compare the VMS and the different networks in
The three main advantages of Docker containers are:
First: A constant feature – operating system, library version, configuration, folders, and applications are all covered. You can introduce the test images used in the quality inspection process to the production environment intact.
Second: lightweight – The container is very small in size. Compared
1, shared host directory to the container
Docker run-d--name=test-v/opt/test:/usr/databases docker-testTest is the name of the container, it needs to be unique;-V indicates that a data volume is created and mounted in a container, and the example indicates that the/opt/test directory of the host is mounted to the container's/usr/databases directory; docker-test i
contains those records. When we used the export test, we found that the file was only about MB.
[emailprotected]:~#dockersaverastasheep/ubuntu-sshd>ubuntu_sshd.tar[emailprotected]:~#[emailprotected]:~#[emailprotected]:~#du-shubuntu_sshd.tar1.1Gubuntu_sshd.tar[emailprotected]:~#
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/45/F8/wKiom1PtgJjR6VlAAAEWQrB6zJI161.jpg "Title =" 11:36:39 screen .png "alt =" wkiom1ptgjjr6vlaaaewqrb6zji161.jpg "/>
I guess if there is a distributed f
In the previous articles, we discussed how to install Docker in Ubuntu14.04 (64-bit) and how to deploy an Apache server in Docker and access the server on an external computer, and deploy in Docker
A MySQL database and access the database on an external computer.
The following is a discussion of the Docker between the
web. The general process should be consistent with the following: (The following is just a guess, because the author does not have much time to study its source code)1. Create a net Namespace netns1.2, create a pair of Veth, add Peer to netns1, the other end of the connection to the bridge BRIDGE0.3. Assign IP to these two veth.4. Use NETNS1 to start the procedure in the container such as/bin/bash.Unfortunately, the Docker run does not have an option
Docker creates containers and mirrors that support SSH services
Use CentOS as a container here, so first download CentOS images Sudo docker pull CentOS
Download and run a CentOS container, Here I use CENTOS6 as my Test Container Sudo docker run--name=centos-ssh-i-T centos:centos6/bin/bash
article, if reproduced, please indicate the source and link. From flying away cannot: http://www.cnblogs.com/hanyifeng/p/6293620.htmlEnter the container:[email protected] ~]# Docker exec-it Cadvisor/bin/ashUse the DD command, as follows:/# Swapoff-addif=/dev/zero of=/dev/shm/test bs=1k count=80000kdd' /dev/shm/test': No space left on device65537+0 in 65536+0 Records outThen observe the Grafana graph interface, you can find that the alarm rules have
1. Export container If you want to export a local container, you can use the Docker Export command to
export the container snapshot to a local file
.
$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7691a814370eUbuntu:14.04 "/bin/bash" $hours agoExited (0) +hours ago Test
$ sudo
Jenkins configuration file Backup:Docker CP Focused_bhaskara:/var/jekins_home./jenkins_homeWhere Focused_bhaskara is the name of the currently running Jenkins container and is available through Docker PS viewing names.Docker create-v/var/jenkins_home--name JENKINS-DVMake the data volume container and run:1. Jenkins_home,copy the previously backed up Jenkins configuration directory to the current directory;2. Edit Dockerfile as follows:From Debian:jess
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.