Install yar in php7 to generate a docker image, yardocker
Docker contains three concepts:
(1) Remote repository is the gathering place of all images in the remote image repository (you cannot enter the operation ).
(2) Local images are images pulled from remote warehouses.
(3) A running local
default data) for a test (when I do mongodb mirroring, After the test of the package after the mirror has reached 4 G, and did not test on the hundreds of MB, the difference is too large, because the Docker mirror can not be too large, otherwise bad upload. So it is generally done, first pack into a mirror, and then test, if successful. That's OK. Ideal is very full, showing a backbone, in the installation of Oracle process, the error. This error
container application is more and more widely used, the advantages of container technology is the development of operation and maintenance integration. By encapsulating the application and its dependent packages, operating system files and so on in the container image, the application has the same operating environment in the development, testing and publishing process, which brings great convenience. As you can see from the classic
not delete the image. When the following parameter is the mirror ID, the entire image is completely deleted and all the tags are removed together. For example, Docker RMI Wyp123:latest deletes the image of the specified name and tag.Quick Image Download:https://www.daocloud
Docker official and individual published images due to a variety of reasons, such as version, more loopholes, has been counted Docker hub more than 30% of the official image contains high-risk vulnerabilities. In addition, the Docker pull download
-fpm-group=www--with-libdir=lib64--enable-ftp-- With-imap--with-imap-ssl--with-kerberos--with-gettext--with-xmlrpc--with-xsl--enable-opcache--enable-fpm-- Enable-xml--enable-shmop--enable-session--enable-ctype--with-iconv-dir--with-iconvNote: There is a problem self-Baidu.(4) Make make install(5) Preparing the PHP configuration fileCP Php.ini-production/etc/php.iniCd/usr/local/php/etcCP Php-fpm.conf.default php-fpm.conf(6) Modify the configuration file;d aemonize = yes to remove the comment and
can see the display not a dynamic executable , where we disable CGO to generate a static binary file, while setting the system to Linux. We set the base image to scratch, which is a very small image.The re-written dockerfile is as follows:
FROM scratchADD main /ENTRYPOINT ["/main"]CMD ["-logtostderr"]
Execute Docker build-t example-scratch. To generate the image
To facilitate some basic download of Docker images, I built a Docker that station http://www.dockerpool.comProvides a one-stop Docker mirroring service for Docker users:
Stable and reliable official image
Today small make up to everybody record under Docker under CentOS7 can't download mirror timeout problem, first to everyone to say the ins and outs of the problem.
Problem Description:
Yesterday bought six month Aliyun server's student machine uses to deploy the complete environment, has the problem when the Tinker Docker,
When you create a mirror through dockerfile, it is generally based on the official image provided by the Docker Hub. The following describes how to create a personal private base image on a ubuntu16 system .1, install bootstrap tool Debootstrap$ sudo apt-get insall debootstrap-y2. Download ubuntuxenial (16.04) binaries
= 192.168.2.196Gateway = 192.168.2.1DNS = 192.168.2.1DNS = 114.114.114.114
Then restart the service:
systemctl restart systemd-networkd
At this time, the ip address is allocated. It can be accessed through the Intranet.
3. Set host
Add a Host:First, enter the host IP address. If an error occurs, modify the IP address in the admin menu:Then add an agent that can be monitored by rancher only after the agent service is available.Of course, this host is itself.A super-long id will be generated a
= 192.168.2.1DNS = 192.168.2.1DNS = 114.114.114.114
Then restart the service:
systemctl restart systemd-networkd
At this time, the ip address is allocated. It can be accessed through the Intranet.3. Set host
Add a Host:First, enter the host IP address. If an error occurs, modify the IP address in the admin menu: Then add an agent that can be monitored by rancher only after the agent service is available.Of course, this host is itself. A super-long id will be generated after the addition, and th
First, the environmentUbuntu 14.04Docker version 1.9Second, the preparatory work
Download Ubuntu image----Docker pull Ubuntu
New Apache directory mkdir/apache into Apache Cd/apache
New File Dockerfile Touch Dockerfile
Create a new index.html touch index.html in the Apache directory
VI index.html Input:
VI Dockerfile Input:From UbuntuMaintainer ZHONG
Installation environment, CentOS Linux version 3.10.0-514.el7.x86_641. Find the latest MySQL imageDocker search MySQL2, download the latest mysql-server imageDocker pull Mysql/mysql-server:latest 3, after the download is complete, you can view the downloaded image Docker images 4, build container, the-e command to set
downloading the whole folder under a number of projects, the actual combat use is Loadbalancedemo, proposed with INTELLJ idea to the form of MAVEN project to import.Open the Pom.xml file in your project and you can see the value of the bottom-most plugin node: To start making a Docker image file, let's get the job done first:1. Create an empty folder, such as Image_tomcat;2. Go to the Tomcat webs
Docker container run, generally cannot ssh, this container management brings trouble, below will explain how to create a docker image that supports SSH
Download the Ubuntu image from the dock hub firstCommand: Docker pull Ubun
Create a docker image and initialize the jdk8 and tomcat environments.1. Create a Dockerfile:
Create a Dockerfile and download jdk and tomcat in the same directory as Dockerfile.
Dockerfile content:
1 FROM Ubuntu: 14.10 2 MAINTAINER linx 3 4 # ADD java and tomcat to the container 5 ADD jdk-8u31-linux-x64.tar.gz/usr/local/6 ADD apache-tomcat-8.0.20.tar.gz/usr/loc
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.