Project background:We are a cloud service provider, and we use Dockerfile to create an image that supports the SSH service to the user. Does that sound really cool? In fact, Docker is able to meet this demand!!! Everyone can be a cloud service Provider!!!!Lab Environment:VMware Workstation 11Under the centos7.0 systemServer: ip:192.168.0.61SECURECRT (SSH remote connection software)Experimental process:First
This will show you the process of using Dockerfile to create a Docker image with Apache services.Preparatory work:First, create a Apache_centos working directory in which[Email protected] ~]# mkdir apache_centos cd Apache_centos[email protected] apache_centos]# Touch Dockerfile run.sh[Email protected] apache_centos]# mkdir sample[email protected] apache_centos]# cat DockerfileFrom Docker.io/centos:latest#设
If you need to replace or add a file to the old Tomcatimage to form a new image, you need to do something in Dockerfile
From Old_tomcat
#这里可以使用docker官方的镜像, the following descriptions are examples of
maintainer ****************** on this basis
#如果需要替换原有的配置文件或者脚本
ADD web.xml/usr/local/tomcat/webapps/manager/web-inf/
Add tomcat-users.xml/usr/local/tomcat/conf/
Add server.xml/usr/local/tomcat/conf/
add
Reprint: http://www.cnblogs.com/cfrost/p/6241892.htmlThe first is pull image, and here I take5.6.35:
1
$sudodocker pull mysql:5.6.35
After pulling down the big can follow the official instructions no brain start, but external inaccessible, so bound port:
1
$sudodocker run --name mysql -p 12345:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.6.35
Try to connect with the client, success
mysqld_charset.cnf/etc/mysql/conf.d/mysqld_charset.cnf# Add a MYSQL scriptADD import_sql.sh/import_sql.shADD run.sh/run.shRUN chmod 755/*.sh# Set environment variables, user names and secretsENV Mysql_user AdminENV Mysql_pass **random**# Setting environment variables in master-slave copy modeENV Replication_master **false**ENV Replication_slave **false**ENV replication_user ReplicaENV replication_pass Replica# Set the volume that can be mounted, which can be used to back up the database and con
exchanges and discussions.Company Background Introduction:Shanghai Yun Axis Information Technology Co., Ltd. (hereinafter referred to as Shanghai Yun Axis) was established in 2015. The company initiated and maintained the next generation of open source cloud computing engine Zstack (http://zstack.org), the company's team members are from Silicon Valley and domestic foreign core research and development personnel, in the cloud-related core areas of more than 10 years of technology accumulation.
Skills
The most fascinating thing about the web is the colorful images. The success of the site can not have a gorgeous image, otherwise it will make the survey people feel uninteresting. The following describes the basic image tag: in the HTML language. Its basic grammatical structure is as follows:
Align=top|middle|center|bottom|left|rightClass=typeId=valueName
Reason:/etc/dpkg/dpkg.cfg.d/excludes file, the install Help document is rejected. At this point, even if the APT installation help document appears to be successful, it is not actually installed locally. The contents of the excludes file are as follows:# Drop all man pages path-exclude=/usr/share/man/*# Drop all documentation ... path-exclude=/usr/share/doc/*# ... except copyright files ...path-include=/usr/share/doc/*/copyright# ... and Debian changelogspath-include=/usr/share/doc/*/changelog.D
First, Docker pulls the Tomcat image, as shown in figure:
Second, install the Tomcat container, as shown:
Note:--link Connect to MySQL (otherwise the DB cannot be accessed.) Each container is independent)
Tomcat_mysql is an alias. DB configured as: tomcat_mysql:3306
Third, if the 80 port is occupied, then stop Tomcat and remove the Tomcat container, as shown in figure:
Four, replace the port of
The most fascinating thing about the web is the colorful images. The success of the site can not have a gorgeous image, otherwise it will make the survey people feel uninteresting. The following describes the basic image tag: in the HTML language. Its basic grammatical structure is as follows:
Align=top|middle|center|bottom|left|right
Class=type
Id=value
Name=val
Image Tag attributes in HTML image tag attributes in HTML
Images can make webpages more vivid and beautiful. The browser can display JPEG and GIF images. a GIF image can only contain up to 256 colors (that is, it can only be saved as an 8-bit face filter ).
The JPEG format c
Background: The Spring Boot integrated Servlet is released as a ready-to-run war package for later packaging as a Docker image.
Original Address Https://github.com/weibaohui/springboot-servlet-jsp-war-demo
#1, Build.gradle configuration note, added the war plug-in, the dependency of Jstl, Tomcat-embed-jasper, so as to run the JSP page.buildscript { ext { springBootVersion = ‘1.5.3.RELEASE
In the Li tag, the list-style-image is located differently in IE and Firefox.
List-style-image has been used many times before, but it is inconsistent in different browsers, especially alignment.
Debugging one by one today is still rewarding.
First, we can find some problems from the simplest and most primitive ones --
Code:
URL (../
If we use Dockerfile to build Docker mirrors, it would be very scary to accidentally cause the mirror to be larger than 1G. Are generally good hundreds of trillion. Larger mirrors tend to cause porting and migration is slow. Dockerfile, like code, needs to be optimized continuously. Using the following 4 optimization schemes, you can significantly reduce the size of the mirror.
The most important factor is to reduce the number of mirrored layers, whic
Image Tag attributes in HTML
Images can make webpages more vivid and beautiful. The browser can display JPEG and GIF images. a GIF image can only contain up to 256 colors (that is, it can only be saved as an 8-bit face filter ).
The JPEG format can be stored as 24 BITs, which has the best effect on the specific continuous tone
In the course of Web page loading,A picture that exists with a CSS background background-image will wait until the structure is loaded (the contents of the page are all displayed) before it starts to load.The tag img in HTML is a part of the structure (content) of the page that is loaded in the process of loading the structure.In other words,The page will load the contents of the
Html Tag: The image can also submit form !!!, Imageform
Html Tag: The image can also submit form !!!
Image can also submit form
Previously, "
The development process in the project today includes the following features:
Click "XXX" to submit the form. However, this button is
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.