Restart policy:Use the--restart parameter to set when using the Docker run.No-container does not restartOn-failure-container launch status non-0 o'clock restartAlways-restart all the Timeshttps://docs.docker.com/reference/commandline/cli/#restart-policiesRestart PoliciesUsing the --restart flag on Docker run you can sp
Once the Docker container is started, the parameters cannot be changed. The most common change in the production environment is the port mapping, in order to solve this problem, then first of all planning, this article listed two port planning scheme, if the subsequent maintenance in order to increase the port mapping scene, this paper also gives a dynamic port mapping expansion scheme.
1. Single IP multi-
There are two main ways of managing data in a container:
Data volume (volumes)
Data volume container (volumes dontainers)
Data volume
Use-V to mount a local directory into the container as a data volume.
[root@wls12c/]$ ls/b2b
backup prog_update wasStatus.log
[root@wls12c/]$ Docker run-d]--name=tomcat -v/b2b:/test-
1. Start a Docker container# docker Run-t -I Ubuntu/ruby:v1/bin/bash2, then in the container, install Openssh-server openssh-client# apt-get Install openssh-server openssh-client3. After completion, change the root password# passwd4. Exit the container and save the above cha
First, let's talk about Docker's network mode: When we use Docker run to create a container, we can use the--net option to specify the network mode of the container, with Docker having a total of 4 network modes:1:bridge mode,--net=bridge (default).This is the default setting for the Dokcer network. After installing
Using the-v parameter in Docker Practice 2 links the host to the relevant directory in the container (mount), so we can use this channel to put the data we want to copy with each other, so that we can use the CP command to copy the file.In addition to this approach, we can also use different commands to copy the data separately.Copy data from a container like a h
Samba service and docker container installation configuration in the php development environment, sambadockerSamba installation ConfigurationYum install samba-client samba-common modify smb. conf, it is best to back up the original file first to prevent smb from executing vi/etc/samba/smb due to incorrect modification. conf // configuration file [global] workgroup = WORKGROUPserver string = Samba Server % v
Build a kafka cluster environment in a docker container
Kafka cluster management and status saving are implemented through zookeeper. Therefore, you must first set up a zookeeper cluster.
Zookeeper cluster Construction
I. software environment:
The zookeeper cluster requires more than half of the nodes to survive for external services. Therefore, the number of servers should be 2 * N + 1. Here, three nodes
Tags: docker art default exclude row var statement show restart1. Download MySQL image# docker Pull MySQL2. Start the MySQL container# docker run-itd-v/data:/var/lib/mysql-p 33060:3306--name mysqldb MySQL BashWarning:ipv4 forwarding is disabled. Networking won't work.25d047a99917c6420412f36e1d0e2e6af38fc86539b2184d1ea7
Tags: system inux ubunt EMC Technology share sysconfig container data. com reloadThe parameter specifying the mirror and container storage path is--graph=/var/lib/docker, whose default storage location is /var/lib/docker,Docker configuration file can set most of the backgrou
Docker Container Memory Monitoring
Linux Memory Monitoring
To understand how the Docker container memory is computed, first understand the concepts associated with memory in Linux.
Use the free command to view current memory usage.
[Root@localhost ~]$ free
total used free shared buffers ca
Build the Turtlebot Robot Slam cruise map in the Ros container of the Docker platform
SLAM (simultaneous localization and mapping), also known as CML (Concurrent Mapping and localization), instant positioning and map building, or concurrent mapping and positioning. The problem can be described as: putting a robot in an unknown location in an unknown environment, whether there is a way for the robot to grad
to add the following lines in the/etc/profileMaven_home=/usr/local/maven3Export Maven_homeExport Path=${path}:${maven_home}/binRemember to execute source/etc/profile to make the environment variable effective.Then, enter Mvn-version to return the version information to install the normal################# #到这里环境就配置完成了, the following is the real deployment of the part, because the process is tortuous, may be more detailed, pro-Test available ##############Start with maven packaging, MVN clean pac
Docker officially recommends that we use port mapping to provide the services of the Docker container to the host or to other containers in the LAN. The general process is:1. The Docker process packets the port data to the Docker contain
first, the new and start the containerUsage:docker Run [OPTIONS] IMAGE [COMMAND] [ARG ...]650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/83/0D/wKioL1dp7qmCLz9VAAKYkvj7mGk419.jpg "title=" Qq20160622094845.jpg "alt=" Wkiol1dp7qmclz9vaakykvj7mgk419.jpg "/>The following command launches a bash terminal, which allows the user to interact with the meaning of some of these options, please refer to the help above:Docker Run-ti Jdeathe/centos-ssh/bin/bash650) this.width=650; "src=" Http://s5
Aliyun's mirror services are well done, including the commonly used Debian (Ubuntu) and Redhat (CentOS) mirrors, the repo of all kinds of open-source software, and Docker's container mirrors, all copy one on a domestic server. Download speed is no longer limited by the big firewall you know. System and various types of open source software backup directly to see http://mirrors.aliyun.com/, the following alone Dock
original Du YishuPrevious stage experience MySQL new version 5.7.13, because there is already MySQL in the machine, install another version will have some trouble, in order to be simple, use the Docker container to installSome people may think that there is no need to install multiple Mysql in a machine is not so complicated, indeed, the mere realization of this requirement is no problem, but in fact it is
The Docker container was used to set static IP addresses and communication between containers and containers, so there was not much to record.See an article on the internet today about setting up a static IP address. On their own in the actual situation. Yes, there's a pipework that can also be set.Operating system environment[Email protected]:~# cat/etc/issueubuntu 14.04.3 LTS \ \lHost (the system uses UBU
Docker is based on the Linux kernel, in the current mainstream Linux system, have already native support Docker and the experience is also the best, of course, in the Windows platform and MacOS system also support Docker, You just need to use virtualization tools like Boot2docker to provide Linux support.
The following focuses on the two types of creating
adds a network card for 10.10.10.0 network segment FLANNEL.1DOCKER02 host adds a network card for 10.10.58.0 network segment FLANNEL.1Can see no netns, from the above information can be obtained, flannel is currently a virtual network cardYou can see that we are only doing "Install etcd--Install Flannel--flannel Association ETCD", but the Docker host does not have a flannel network associated with it, do the following:Specify Flannel_subnet segment a
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.