-edition Someproject
It's awesome! Here's some real work.
Container
It is fairly easy to build a self-contained container that runs a standard Symfony project, simply by installing the common Nginx, PHP5-FPM, and Mysql-server, and then throwing in the prepared Nginx virtual host configuration file, Copy some of the configuration files and get in.
The source code of this container can be found in the Ubermuda/
Foreword because most of the image download websites are abroad, Chinese users often encounter slow download speeds when downloading images; in addition, when Docker is applied to the production environment, it also faces the security issue of the downloaded Docker image. Because some private data is built in the production environment
Preface
Because most of the image download websites are abroad, Chinese
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 DataDir directory
Iii. MySQL Dockerfile
[Roo
. 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
Docker practice 5: Build redmine and dockerredmine
Redmine is an open-source project management system. It has the following advantages for me to choose it as my project management tool.
1. Support multi-project management
2. Flexible role management
3. Flexible issue/bug Tracking Management
4. Supports Gantt charts and calendars
5. Support for news, document and file management, email notification, and oth
management->Web TerminalTo interact with the system, as shown in
5.4 online sessions
In some cases, you can easily use the online session function to view who is operating the server.Session management->Online sessionsList, as shown in5.5 Command records
I think one of the greatest roles of the bastion host is auditing. If you want to know which commands a user has executed in the system, you can easilySession management->Command record, As shown in
6. Book recommendation
If you are interested
Golang Docker imageFirst, if we write the file directly inside the Docker container, the data cannot be persisted. Even if you can use the Docker CP command to copy our files to the inside of the container, or to copy the files from the container, there are still a lot of inconvenient places in the operation.Furthermore, the third-party package that the program
#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# # #
Project background:While we are using Docker to bring us convenience, sometimes we need to build a docker cluster, this time, the following content is very valuable.Lab Environment:VMware Workstation 11Under the centos7.0 systemServer: ip:192.168.0.60SECURECRT (SSH remote connection software)Software Introduction:Here are two things I know about Docker.http://939
the container
Containers are run on the basis of mirroring, and once the container is started, we can log in to the container and install the software or application we need.
Use the following command to start the container:
# docker Run-i-t-v/root/software/:/mnt/software/83ee/bin/bash
The command consists of the following three sections:
Docker run
Among them, the relevant parameters include:
-I: Indic
For the same Dockerfile,docker hub to build at different times there will be different results, as in the following building Tomcat Image: # based on CENTOS6 base mirroring from Centos:6 maintainer Chenyufeng " Yufengcode@gmail.com "
# Set the current tool directory # This command does not add a mirrored layer Workdir/home
# Install the necessary tools RUN Yum install-y wget \ rpm--rebuilddb \ NBSP;NBSP;
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
teach you step-by-step to build a Docker-based MongoDB replication cluster environment
1. Installing Docker
2. Create a MongoDB image
3. Building a MongoDB cluster
This article ——-chain--Connecthttp://blog.csdn.net/pddddd/article/details/46893593
Docker is an open-source application container engine that allows dev
Many official versions of Linux images can be downloaded directly from the official repository (Public repositories. Considering the security and speed, we may want to set up a private repositories in our own LAN to store our own images. docker-registry is the tool we need.
git clone git clone https://github.com/docker/docker-registry.gitcd
1. About Docker
Docker is an open-source application container engine that allows developers to package their applications and dependencies into a portable container, and then publish them to any popular Linux machine or virtualize them. Containers are completely sandbox-aware and do not have any interfaces with each other. Docker image is the scenario used to r
nodes to use the swarm function.
(5). You can also view the machine conditions in the cluster on the manager.Docker node ls
4.doc Ker service creation
Service: A long-running docker container that can be deployed on any worker node, it can be connected and consumed by other containers in the remote system or swarm.
Task): The service runs on a container instance.
Replicas): The same service runs on a specified number of worker nodes.
Create a servic
1. Download the Docker Toolbox first:http://get.daocloud.io/#install-docker-for-mac-windows2. Download and install the git Windows clientThe installation is all gone, all allowed.ClickStart Docker if you see the following interface is displayed successfully:The first time is slow, to install the default this system, after startup, you can open your virtual machin
1. Create a MySQL ClusterDownload PXC imageDocker Pull Percona/percona-xtradb-clusterCreate an internal network: For security reasons, you need to create a docker internal network for your PXC cluster instancesCreate command: Docker network Create Net1Create a specified network segment: Docker network Create--SUBNET=172.18.0.0/24 Net1View Network properties:
Mdb1/bin/bashAfter entering the main database container,Vi/etc/mysql/my.cnfRemove the comments from the "Server-id = 1" line, save, exit the container, andDocker Restart MDB1Similarly, changing the MY.CNF from the database to "Server-id = 2" needs to be more than the main Server-idLarge numbers, MDB2 also need to be restarted.3.4Using a client connection on the primary database, here I am using MySQL Workbench, from the database becauseSecurity considerations do not expose the port to the host,
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.