Basic Docker version of the update, this launch 1.9.1 version of the one-click installation method:From the Yum installation of CentOS we can see that 1.9.1 Docker has updated multiple components, so you need to be more prepared when you prepare RPM resources so that you don't interrupt the installation because of missing components;1. Prepare the ISO file:The RPM package and SH script are placed in the sam
This is a creation in
Article, where the information may have evolved or changed.
The original text connection is: http://blog.csdn.net/freewebsys/article/details/53509676Not reproduced without the permission of the blogger.Bo main address is: Http://blog.csdn.net/freewebsys
1. Start learning to build Docker images
http://study.163.com/course/courseMain.htm?courseId=1273002The course is about building with CentOS. I've been
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.
D
using pipework to configure the Docker container to the local network environment
Demand
In the process of using Docker, we sometimes have the need to configure the Docker container to the same network segment as the host. To achieve this demand, we simply will
It is important to note that the image files downloaded from the Docker pool are identical to the official image files.After installing Docker, you can use the official registry image to build a set of local private warehouse environments:
Docker run –d –p : Registry
After the input can wait, in fact, the local repository itself is a contai
ObjectiveIn Docker engine v1.12, using swarm can easily create a overlay mode network, but it can only be used by the service below Swarm, which is completely isolated relative to container. In v1.13, when running containers, you can join the overlay network that was previously customized in swarm mode!1. Create swarm in one Docker host (172.100.1.17)$
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
Deploying Hadoop distributed clusters using DockerLooking for a long time on the internet did not find the use of Docker to build a Hadoop distributed cluster of documents, no way, can only write one.One: Environment preparation:1: First, you have a CENTOS7 operating system that can be installed in the virtual machine.2: The version of Docker,
This article describes how to use MySQL in Docker and the simple internal setup steps. if you need it, refer to the virtualization technology mentioned below. I am a linuxContainer (LXC). But with the increasing popularity of Docker technology, I want to show you how to use Mysql with Docker
What is Docker?
In fact,
How can I develop Docker applications using PHP + MySQL?
20141206234218_104.png (170.93 KB, Downloads: 37)Download attachmentUploadIn program development, only one technology is definitely not enough. many applications need to be developed using multiple technologies. Today, let's talk about how to build a Linux + Apache + MySQL + PHP application
command is bash, attach is also connected to bash so that the container can be manipulated at will.
Closing a connection is easy to think of, is to exit Bash:exit.
But, however, this exit can cause a problem when the container stops because the 1th process exit (the Attach command Connection bash) will assume that the task is complete.
As above, the container has been stopped (exited).
Therefore, I recommend using the EXEC command to manipulate
This article describes the configuration of simple load balancing on the Docker, host for the Ubuntu 14.04.2 LTS, two CentOS containers, host installation Nginx, two containers installed TOMCAT7. The structure is as follows:
The rationale for this scenario is to map the port of the host and the port of the Docker container (that is, a port accessing the host will map to the port of the
--name testmysql-e mysql_root_password=123456-d mysql6a38e59ef95d1a3f63a12d9c6c2ae20cf782001f25641f5159812e2a707f3f1d[email protected]:~$ Docker PS-acontainer ID IMAGE COMMAND CREATED STATUS PORTS names6a38e59ef95d MySQL"docker-entrypoint ..." 2Seconds ago Up2Seconds0.0.0.0:53306-3306/TCP testmysql74d9a010c9b5 MySQL"docker-entrypoint ..." -Minutes ago Up6Min
Create yml using docker compose
The format version of The docker compose file must correspond to the docker version, which can be found on the official website.
Search address:Https://docs.docker.com/compose/compose-file/compose-file-v2/#compose-and-docker-compatibility-matr
webdriverfirefox_capabilities = {"browsername": "Firefox", "version": "62.0.3", # note that the version number must be written to "Platform": "any ", "javascriptenabled": True, "Marionette": True,} browser = WebDriver. remote ("http: // 192.168.179.128: 5555/WD/hub", desired_capabilities = firefox_capabilities) # note that port 5555 is the host machine port number mapped above browser. get ("http://www.baidu.com") browser. find_element_by_id ('kw '). send_keys ('
Macvlan network driver after version 1.12, so that we can more easily configure the bridging network for the container.MacvlanAs the name implies, the principle of Macvlan is to virtual on the host physical network card, multiple sub-network card, through the different MAC address in the Data link layer (the database link) for network data forwarding, it is relatively new network virtualization technology, need more new kernel support (Linux kernel v3.9–3.19 and 4.0+).
Docker creates mirrors based on containers that already have mirrors* Docker run Centos/bin/bash first causes the mirror to open the container.* Docker start DE8 launches the specified mirror container. De8 is the ID of the image and can be shortened to 3 bits.* After running Docker exec-it De8/bin/bash, enter into the
How do I get to the container after the Docker container is running? At first I was using SSH. If you only start a container and use SSH to handle it, you only need to map the container's 22 port to one of the local ports. When I started the five containers, each container by default is not configured SSH server, installation configuration sshd, map container ssh port, it is really troublesome.I find that m
command.As can be seen from the display of the PS command, the EXEC command launches a new bash,pid of 24 (of course, the PID should be randomly assigned). Unlike bash, which has a PID of 1, we are currently connected to the 24 bash, which can execute commands and operate at will. And after exiting, it does not affect the 1 PID of Bash, so that the container can continue to run.Visible, after I quit the container bash, the container is still running. After I use EXEC to execute the PS command o
How to build a private docker repository using CentOSPreface
Because most of the image download websites are abroad, Chinese users often encounter slow downloading speeds when downloading images. In addition, when Docker is applied to the production environment, whether the downloaded Docker image is secure or not.
Bu
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.