Docker to build lamp application
LAMP refers to the Linux (operating system), Apachehttp Server, MySQL (sometimes referred to as MARIADB, database software) and PHP (sometimes referred to as Perl or Python) The first letter, generally used to build a Web server. Although these open source programs are not specifically designed to work with several other programs
Build a docker environment for the Distributed log platform from the beginning and build a docker
In the previous article (spring mvc + ELK build a log platform from the beginning), we will share with you how to build a distribut
docker bin file is generated.
3. Compile Dockerd compile dockerd, you need to install many packages. You can install the required packages based on the error message. For example, I'm fedora25. Go build will report libdevmapper.h missing. Then DNF install Device-mapper-devel.x86_6.
4. Compile the containerd. git clone github.com/
/etc/maven/settings.xml2. Create RepositoryRegistered Account: https://hub.docker.com/DockerHubcreated on the Create Repository , for example: docker-spring-boot-demo-maven-plugin , such as3. Modifying the POMThe project pom.xml is modified as follows: Note that imageName the path is consistent with the path to the repoImage nameWill Docker Mirror push to the Do
When using the Dockerfile build image, the advantage is that the content sent to Daemo is too largeBuildimage:q_build/javaweb:20150910174642sendingbuildcontexttodockerdaemon 4.768gbsendingbuildcontexttodockerdaemonstep0: FROM192.168.100.123:5000/q_basic/javaweb:1.0--->0aab72ab2945step1: MAINTAINERtyleryanBut our dokerfile is very simple, so where does this extra content come from?After reviewing the information,The
When using the Dockerfile build image, it is sometimes found that the content sent to daemon is too largesendingbuildcontexttodockerdaemon 4.358gbstep0:fromxxx.xxx.com/centos:7--->218081f3bcdcstep1 :RUNmkdir-p/data/mysql/base--->Usingcache---> ac4aa04a93a1Step2:RUNaddusermysql--->Usingcache --->f30c90e0e589Step3:ADDbase/data/mysql/base---> 3666ada5715cremovingintermediatecontainerd65c5abdfe5cstep4:entrypoint /data/mysql/base/entrypoint.sh--->Runningin
configurations such as hardware and running environments, makes the migration of applications very simple.
Comparison of >docker and traditional virtualization technologies
Compared with the traditional virtual machine technology, Docker resources occupy less, start faster, greatly facilitate the deployment of the project and operational dimension.
Docker is
very simple.Comparison of >docker and traditional virtualization technologiesCompared with traditional virtual machine technology, Docker resource occupies less, starts faster, and greatly facilitates the deployment and operation of the project.Docker is virtualization on the operating system level, reusing the local host's operating system, the traditional way is based on the hardware, virtual out of mult
article describes how to use these environment variables.Build and run an image
Everything is ready to go. We also need to build a Symfony Docker image and use the docker build command:
$ cd docker-symfony$ docker
Preface
We have mentioned earlier that if we build the Docker cluster, there will be the need for a Docker instance network connection across the host, and in order to save the IP resources of the host network, we try to use DOCKER0 own network connection, add Host network IP to the main node (container instance), This should be a more desirable business requirem
time:docker push localhost:8003/spider:0.01As shown in.Remember this build and upload command, each time you update the code, you need to use these two commands.Create a serviceDocker Swarm is running a single service, so you need to create a service using Docker service commands.docker service create --name spider --network host 45.77.138.242:8003/spider:0.01This command creates a spider service named. 1
container will enter its command line when it is started
-v: indicates which directory needs to be mounted to the container, format:-v
Assuming that all our installers are placed in the/root/software/directory of the host, it is now necessary to mount it to the Container's/mnt/software/directory.It is necessary to note that you do not have to use "mirror ID" or "warehouse name: tag name", for example: docker.cn/
This time to bring you Docker to build a PHP development environment steps in detail, Docker build PHP development environment steps detailed attention to what, the following is the actual case, together to see.
1. Preface
1.1 Why use Docker?
Whether there is such a scenari
When using Docker, the most commonly used commands are nothing more than the docker container docker image associated subcommands, and of course, when there is no management class command (or grouping), the most frequently used commands are nothing more than docker run docker
the container is running in "interactive mode"
-t: Indicates that the container will enter its command line when it is started
-v: Indicates which directory needs to be mounted to the container, format:-v
Assuming that all of our installers are placed in the directory of the host /root/software/ , we now need to mount them in the container's /mnt/software/ directory.It is necessary to note that you do not have to use "mirror ID" or "warehouse Name: Tag name", for
Build a Docker registry private image to resolve the Docker private warehouse push error
applies To: Docker 1.8 Environment: Centos7
Each version of the Docker modification configuration content is different, please be optimistic about the installation of the
+p, and then ctrl+q, can be kept in the background to run, using Docker PS can be queried, if you feel trouble, you can specify a name at run time:Docker run-i-T--name containername imagesNamed ContainerName, using Docker PS, you can query toWhen the container exits, the container is started again, and the Docker start command is requiredDocker start Containerid
When we set up the Docker cluster, we will solve the problem of how to collect the log Elk provides a complete solution this article mainly introduces the use of Docker to build Elk collect Docker cluster log
Elk Introduction
Elk is made up of three open source tools , Elasticsearch, Logstash and kiabana
Elasticse
script at the time of installation:Observe this default Web site (https://get.docker.com actually has a https://test.docker.com, which is always the latest version), is a shell script,Through the analysis, we can get the change of the pkg_version variable to the version number we need, we will achieve the desired effect,The next thing to do is to copy the shell, according to our conclusion, change it, put a server on top, and then specify this address for the address of the shell that installs
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.