initial value of the server self-increment columnAuto-increment-increment: The server self-incrementing incrementREPLICATE-DO-DB: Specifying the replicated databaseREPLICATE-IGNORE-DB: Databases that are not replicatedRelay_log: From the library's trunk log, the main library log is written to the relay log, and the relay log is re-made from the libraryLog-slave-updates: Whether to write binary logs from the library, or enable if necessary to become a multi-master. Read-only can not be requiredI
When you start using Docker, people often ask: "How do I get into the container?" "And others will say" run an SSH server in your container. " However, from this blog post you will learn that you do not need to run the sshd daemon to enter your container. Unless, of course, your container is an SSH server.
Running an SSH server is taken for granted because it pr
Docker uses the Maven plug-in to build the image, dockermaven
You can use the Maven Docker plug-in to build a Docker image.
Quick Start
Add the Docker plug-in to pom. xml
Run the follo
Docker run: Create a new container and run a commandGrammar:Docker run [OPTIONS] IMAGE [COMMAND] [ARG...]Options Description:
-A stdin: Specifies the standard input and output content type, optional stdin/stdout/stderr three items;
- D: run the container in the backgro
Mirror usageSelf-owned certificate usageDocker run-d--name=google \-P 80:80-p 443:443 \Directory for SSL certificates on-V systems:/USR/LOCAL/NGINX/CONF/SSL \-E proxy_google=on \-E proxy_ssl_crt_key=on \-e proxy_crt= your CRT name \-e proxy_key= your KEY name \-e proxy_domain= your domain name \Benyoo/nginx_build:proxy_google
System from the Visa book usageDocker run-d--name=google \-P 80:80-p 443:443 \-E
:
docker pull registry.jumpserver.org/public/jumpserver:1.0.0
The download process may be slow. It takes about 14 minutes for the author to complete the download. The result is as follows:
1.0.0: Pulling from public/jumpserveraf4b0a2388c6: Pull completeaa66a3d10fd2: Pull complete1d4c6a27f2ac: Pull complete2490267572de: Pull completeb00f1599768d: Pull complete398fc903cdc3: Pull completef8490bbfc09a: Pull complete86d238b365f5: Pull complete2cd3b1ef59b2:
and deleting a running container, restart it in the same way that the volume binds the host profileDocker Stop Squiddocker RM squiddocker run--name squid-d--restart=always--publish 3128:3128--volume/srv/docker/s QUID/CACHE:/VAR/SPOOL/SQUID3--VOLUME/HOME/EC2-USER/SQUID/SQUID3:/ETC/SQUID3 Sameersbn/squid:latestSix, now a private HTTP proxy server has been set up, modify the browser's access settings can be u
I. OS:
[Root@linuxea lnmp]# Cat/etc/redhat-releaseCentOS Linux release 7.2.1511 (Core)Mariadb-10.0.27-linuxNginx1.10:1php5.6.26II. Notice
Separating LNMP on Docker single machineThe/mydata/data Data directory has been placed on the host before Dockerfile, mounted/mydata/data to the container when run MySQL, and other log files and configuration files, which need to be specified in the configuration file D
usually only acts as a manager, is responsible for task scheduling, slave node management, task status collection, and the specific build task is assigned to the slave node. There is no limit to the number of slave nodes that a master node can theoretically manage, but the performance and stability are usually decreased with the increase in number, and the effect is different depending on the performance of master hardware.
About
Install Docker, this example uses CentOS 7, other systems installed please Baidu.
Installation: Yum-y Install Docker
Start: Service Docker start
Some basic Docker commands are:
Docker images
Today, I encountered a dockerfile to create a mirror, the mirror run after the container automatically end the problem.
Start command:
Docker run-d-P 8080:8080-v/usr/local/tomcat7.0/logs:/usr/local/tomcat7.0/logs--name tomcatweb tomcat:7.0
After running with Docker PS found the
-size: Set the size of the/DEV/SHM, the default value is 64M;
--ulimit: Ulimit configuration.
--tag,-t: the name and label of the image, usually Name:tag or name format; You can set multiple tags for one mirror in a single build.
--network: default. Setting the network mode of the Run command during build
InstanceCreate the image using the Dockerfile of th
I tried to use the supervisor to start nginx and PostgreSQL ON THE dockercontainer boot. Use the following Dockerfile and supervisord. conf files. The above application starts, but stops after a moment. What's wrong? There is no error message in the stderr or system log file. Dockerfile: 1. [Code] [text] FROMUbuntu: 14.04 RUNmkdir
I tried to use the supervisor to start nginx and PostgreSQL on the docker container boot. Use the following Dockerfile and
enable nginx as the reverse proxy to support SSL transmission and authentication.
Build Environment:
System: CentOS 7.1Server IP address: 192.168.1.12Server domain name: registry.exmple.com # When an SSL certificate of https is generated, the IP address cannot be used. Therefore, you can set a domain name here, which is not necessarily a real domain name.Client IP: 192.168.1.11Proxy webserver: Nginx (reverse proxy)
1. configuration process
In order
. Another problem occurs during the upload, because SELinux is irrelevant. (UseSetenforce 0You can also disable the Command temporarily.VI/etc/sysconfig/SELinuxChange the line insideSELinux = disabledSave the changes and restart the instance .)
8. view images in a private RepositoryHttp: // 192.3.8.187: 5000/v2/_ catalog
9. In this way, the image of the private repository is downloaded on Server 2.Docker pull 192.168.56.200: 5000/centos
10. backup
This article assumes that the user has installed and configured Docker's operating environment, and Docker Daemon is already running. If you want to install Docker on SuSE, refer to the Article Docker Learning Series 1-suse installing Docker to set up the Docker runtime envi
After using the Docker login command, you can push the image to the Dockerhub using the push command, but dockerhub on the public web, the free account has only one private repository free, All that remains is to be made public. Due to various restrictions, the creation of enterprise private warehouses has a variety of application scenarios. This article will briefly describe how to build a private reposito
#docker build Image (Dockerfile)
CentOS 7.4.1078 Image Maker
Nginx image creation (based on front centos7 image)
nginx+php Image Production
For more walkthrough, see the Readme file in GitMy git site https://gitee.com/almi/docker# # # clone files to this directory git clone https://Gitee.com/almi/docker.git# # #
Installing Docker
Get the core image
Docker pull Microsoft/dotnetFirst in https://hub.docker.com to find the core official image, the relevant parameter settings https://hub.docker.com/r/microsoft/dotnet/detailed instructions
Making Dockerfile[Core Program Publishing directory ] sudo touch dockerfilesudo vim DockerfileDockerfile File Contents:From Microsoft/dotnet //8888 ["dotnet", "WebApp.dll"
Label:Introduction to the Software environmentOperating system: Ubuntu Server 64bit 14.04.1Docker version 1.6.2Database: Mariadb 10.10 (Mariadb is the father of MySQL after MySQL was acquired by OracleCreated branch, better performance than MySQL Open source version)First step to installing DockerFor Ubuntu, it is recommended to install the latest version of Docker directly on the Internet, Apt-get in the older version.First get the installation scrip
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.