; #} #如果结尾为. php file, the container named PHP, is responsible for the container. PHP, and the port is 9000, Location ~ \.php$ { root HTML; Fastcgi_pass php:9000; Fastcgi_index index.php; Fastcgi_param script_filename/$document _root$fastcgi_script_name; Include Fastcgi_params; } } } From Centos:centos7Maintainer yst [email protected] RUN yum-y Install gcc gcc-c++ pcre-devel zlib-devel makeRUN Useradd nginx
The default space for the Docker container is 10G, and if you want to specify the size of the default container (specified when you start the container), You can specify it in the Docker configuration file via the Dm.basesize parameter, such asdocker-d--storage-opt dm.base
Anticipating the future seems an unlikely thing, but now the rapid development of enterprise technology is completely beyond imagination.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/18/wKiom1So4RWAZvqNAAHOaYeodo0225.jpg "title=" 1.jpg " alt= "Wkiom1so4rwazvqnaahoayeodo0225.jpg"/>just a few weeks ago, InfoWorld's editor.Eric Knorrin the Drainage trend column, a very hot 2015 and after the nine major trends in technology companies, it is very clear that the first two of the nine m
Backup, recovery, and migration of containers in Docker1. Backup containerFirst, to back up the containers in Docker, we would like to look at the list of containers we want to back up. To achieve this, we need to run the Docker PS command in the Linux machine where we run the Docker engine and have created the container
Windows Container and DockerMicrosoft officially released Windows Server 2016 at the Ignite technology conference in 2016, where container services are already available as a production environment. This means that the windows built-in container service has officially come into view, although we've already had Docker f
Edit a file in a Docker container
I hope that every time I install vi in a docker container, who will give me $1... I want a simpler way to edit files in a running docker container. First, try to avoid editing files, which violate
Container interconnect-linking System in DockerDocker has a linking system that can connect multiple containers. It creates a pair of parent-child relationships that can see the selectedThe information for the child container.1) naming System for containersThe linking system executes according to the name of the container. When we create a
StartThere are two ways to start a container, one is to create a new container based on mirroring and start Docker run, and the other is to restart the Docker container start new container with a
Source:http://stackoverflow.com/questions/26734402/how-to-upgrade-docker-container-after-its-image-changedquestion:
Let ' s say I have pulled the official mysql:5.6.21 image.
I have deployed this image by creating several Docker containers.
These containers have been running for some time until the MySQL 5.6.22 is released. The official image of mysql:5.6 gets u
Tags: docker database RedisPrefaceThis article focuses on how to use the official Redis image and Docker container to build the REDIS-CLI and connect it to a redis image. Let's start with a brief introduction to Redis, a key-value storage system that, in addition to caching the scene, provides a lot of powerful functionality and is now a very popular database. ab
Container interconnect-linking System in DockerDocker has a linking system that can connect multiple containers. It creates a pair of parent-child relationships that can see the selectedThe information for the child container.1) naming System for containersThe linking system executes according to the name of the container. When we create a
-0.2
Logging driver:json-file Kernel version:2.6.32-642.1.1
. el6.x86_64
Operating System:
Set boot up
[root@201 ~]# Chkconfig Docker on
Docker Log Path
/var/log/docker
3. Example Test
Test 1
We download a CentOS image
[root@201 data]# Docker pull CentOS
latest:pulling from the CentOS
3690474eb5b4:pull complete
3
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
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
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
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
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
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
$
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
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.