Container interconnection between multiple physical hosts of Docker
The default bridge Nic of Docker is docker0. It only bridges all container NICs on the local machine. For example, the virtual Nic of the container is generally called veth * on the host, while
partition to the/var/lib/docker, and set the boot auto mount.
Mount/dev/vg_home/lv_docker/var/lib/docker
vim/etc/fstab
---
/dev/vg_home/lv_docker/docker_data ext4 defaults 0 0
----
F. Detect if Docker is available and data is complete
Docker images
G. Uninstall the temporary mount point after confirming th
First, list the containers that have been created on the hostDocker Ps-aSecond, create an interactive containerCommand: Docker run-i-T Ubuntu/bin/bashWhere-i-t represents the creation of a container that provides an interactive shell.Ubuntu is the name of the image, if it does not exist locally, go back to the repository to download./bin/bash is the command that executes immediately after the specified
Deploying Django applications with DockerThe experimental environment: Tencent Cloud Server CentOS 6.7 x86_64Because the Docker Hub of the Mirror in the domestic download speed is very slow, so this time using the Daocloud provided by the mirror. The basic operation of Docker can refer to http://www.tianfeiyu.com/?cat=159.
Docker deployment of Django application
To add a data volume
You can use the Docker create and Docker run commands in conjunction with-V to add data volumes to the container. You can mount a data volume by using-V multiple times:
$ docker run-d-P--name web-v/webapp training/webapp python app.py
mount the host directory as a data volume
$
If the time can be reversed, the real world every step can be broken down to the smallest, recorded, is the log, all things the same day.In the face of history, examine the log, you can choose to forget, you can choose to remember, experienced, can choose to cherish, also can let it dust-laden.What about Docker containers? The log is like a timeline, where you are or not, and he is there. Some people have a good faith in it, but others are free to do
Docker assign static IP to the container for the specified physical network segmentPony 2015-02-06
theRead Docker Linux OS
The official information about the Network bridge and IP configuration is the address of the document: https://docs.docker.com/articles/networking/
1, host (System using UBUNTU-14.04.1-SERVER-AMD64) network using bridging mode (the default i
Docker Container Management* Docker create-it CentOS//This can create a container, but the container does not start* Docker start container_id//Start container, you can use
Using the Docker process, we need to look at the data generated in the container, and between the container and the container, the container and the host before the data sharing, backup and other operations, where the data management of the
This is a creation in
Article, where the information may have evolved or changed.
This article mainly introduces the Docker basics, first introduce my implementation environment:1. Windows 10 Official edition1. Docker Toolbox1. Docker version 1.8.21. Official Image Ubuntu:latest
Here we mainly only say aufs/containers/graph these three directories.
1
About Docker Core ConceptsMirroring is a read-only template for the Docker engine that contains the file system.Mirroring is the basis for creating a container that resembles a sandbox for running and isolating applications.A container is a running instance of an application created from a mirror, which can be started,
Let's review some basics:the machine needs a network interface to send and receive packets, and a routing table to define how to reach which address segments. The network interface heremay not be a physical interface. In fact, the LO Loopback interface (also available in the Docker container) on each Linxu machine is a completeThe Linux kernel virtual interface, which copies the packets in the send cache di
1.Start a container running Consul:Here we use this image:https://hub.docker.com/r/progrium/consul/$ docker run-it-h node-p 8500:8500-p 53:53/udp progrium/consul-server-bootstrap-advertise $DOCKER _ipHow to check this Consul is running:METHOD1:In Docker-machine, run$ docker
Docker provides a method for direct access to multiple containers, the simplest way is to specify the mapped port directly using the port mapping -p parameter or -P to map all the ports, and multiple containers are accessed directly over the network port. However, network port mapping is not the only way to connect multiple containers in Docker, and you can use Docker's connection system ( --link ) to conne
I recently added support for Docker container logs in the Log collection feature. This article simply talks about strategy selection and how to handle it.
About the container log for DockerI'm not going to say much about Docker, it's going to be hot for two years. Recently I was also deploying some components of the l
This article mainly introduces the Docker basic things, first introduced my implementation environment:1. Windows 10 Official edition1. Docker Toolbox1. Docker version 1.8.21. Official Mirror Ubuntu:latestHere we basically only say aufs/containers/graph these three directories.1. Enter the Docker file system directory
scores passed the international Japanese first-level examination, as a two-year Japanese translation work. After employment in Renren, transformation to do Internet development. Graduate student in psychology, CAs. There are nearly hundred technical invention patents, venture partner. We have technical support experience in Tokyo, Japan and Silicon Valley, USA. Currently the United States Group reviews Technical experts (Welcome to pay attention to the personal technology of static children: Pr
The Ros container in Docker is connected to the remote ROS host
Docker is currently a popular open-source application container engine, and ROS (robot operating system) is a popular robotic operating system. In combination, it is a possibility to study the cloud robot. 1. Preparation
(1) Two computers AB, preferably i
How to log in to a container
SSH Login
third-party tools (Nsenter, Nsinit)
Tools provided by Docker (Attach, exec)
Advantages
In line with the usual login server habits, no additional learning
Quick and easy to use
Quick and easy to use
Disadvantages
Secret Key management SSH upgrade monitoring
Need to learn third party tools using rules
How to add a data disk to a container service DockerAbsrtact: We know that docker data is stored on the disk through a federated file system, and when the number of containers or mirrors that need to run on the machine is increasing, it is possible that the size of the disk will no longer meet the requirements, and that the Docker data directory will need to be e
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.