Write in front:After continuing with Docker's learning and learning the basic common commands of Docker, I installed jdk,tomcat two basic Java Web Tools on Docker, where the operating procedures were recorded.Software Preparation:1, jdk-7u79-linux-x64.tar.gz2, apache-tomcat-8.0.36.tar.gzDownload CentOS Image: ( the pro
Docker Learning Note II, based on Dockerfile to build Java Tomcat Runtime environmentObjectiveIn the first text, we completely manual, a command of a command input, implementation of a Java Tomcat runtime environment, although the initial results, but very tiring. If you rely on scripting to build a Tomcat container in
I. Environmental profileHost version: Ubuntu-14.04.3-server-amd64.isoJDK version: jdk-7u76-linux-x64.tar.gzTomcat version: Apache-tomcat-7.0.52.zipTwo. The Ubuntu 14.04 version of the system has its own Docker, view the next Docker versionDocker versionThird, (optional) SSH login server-side preparationUse the SSH client tool to log in, specifically refer to http
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/lo
Install the Tomcat image ready-to-use JDK Tomcat and other software to launch a virtual machine under the home directoryDocker run-t-i-v/home:/opt/data--name mk_tomcat Ubuntu/bin/bashThis command mounts the local home directory to the/opt/data directory of the virtual machine, and if the virtual machine directory does not exist, it is automatically created with the basic configuration of
Tags: es2017 assigning variables interactive span Tom Dock MySQL 1.Install Docker
2. Docker pull Tomcat
Docker pull MySQL
3. Docker run-it-p 8080:8080--rm tomcat:7.0 #-p Port Mappings name of the #
Tags: docker Tomcat
Tomcat server is a popular open-source middleware server. The following describes how to use docker to create a tomcat database service. There is no Tomcat image marked as official in the official Warehouse, bu
Label: style HTTP Io color ar OS SP data
Tomcat server is an open-source middleware server that is more popular than tomcat. The following describes how to use docker to create a tomcat database service. There is no Tomcat image marked as official in the official Warehouse,
Create a Tomcat/Weblogic cluster using Docker
Install Tomcat Image
Prepare required software such as jdk and tomcat in the home directory and start a container.Docker run-t-I-v/home:/opt/data -- name mk_tomcat Ubuntu/bin/bash
This command mounts the local home directory to the/opt/data directory of the container. If th
ubuntu16.04 new two Docker containers using Docker to build a Java+tomcat+nginx reverse proxy dockerrun-it--name tomcat-mysql-v/mnt:/mnt-p8866:80-p33006:3306ubuntu/bin/ bashdockerrun-itd--namewebserver-p8888:80-v/mnt/:/mnt/ ubuntu/bin/bash[emailprotected]:~#dockerps-acontainerid IMAGE commandcreated STATUS PORTS names
There's nothing to say about the Tomcat build in Docker, just download the official Image Docker pull Tomcat (which may be downloaded to several mirrors, that is, the tag is different, and you know why you can tell me)And then I look at the description in the https://registry.hub.docker.com/_/
First, create the Dockerfile file:Create the Dockerfile file and download the JDK with Tomcat in the Dockerfile directory.Dockerfile File Contents:1From Ubuntu:14.102 Maintainer Linx3 4 #把java与tomcat添加到容器中5ADD jdk-8u31-linux-x64.Tar. gz/usr/local/6ADD apache-tomcat-8.0. -.Tar. gz/usr/local/7 8 #配置java与tomcat环境变量9ENV Ja
/user_projects/domains/base_domain/bin/startWebLogic.sh[program:sshd]command=/usr/sbin/sshd -DdockerfileFROM weblogicEXPOSE 22 7001CMD ["/usr/bin/supervisord"]Use of tomcat/weblogic images for use with storageWhen you start, use the -v parameters--volume=[] Bind mount a volume (e.g. from the host: -v /host:/container, from docker: -v /container)The local disk is mapped to the inside of the conta
1. Pull TomcatDocker pull Tomcat2. Start the Tomcat server (here, pull the Tomcat image, which includes the JDK)8888 (Host machine Port):8080(Docker Tomcat container port) Tomcat3. Start in an interactive form, go to the Tomcat container and look at the file directory---find
warehouse, is the place where Docker centrally stores image files.Docker installationPre-conditions:64-bit CENTOS7 SystemKernel 3.10+1. Check the kernel version and return a value greater than 3.10.$ uname -r2. Log in to the terminal using sudo or root privileges.3. Make sure Yum is up to date$ yum update4. Installing Docker$ yum install -y docker5. View the Docker
Docker learning: configure the rancher network environment, download and start the Tomcat container1. About rancher
The rancher environment was set up last time, but the network was not configured properly (). Container not created successfully. This time, it turns out to be a network problem. The coreos installed in virtualbox is not configured with an ip address, causing network access failure. The agent
Docker (3): configure the rancher network environment and download and start the tomcat container1. About rancher
The rancher environment was set up last time, but the network was not properly configured.Container not created successfully. This time, it turns out to be a network problem.The coreos installed in virtualbox is not configured with an ip address, causing network access failure.The agent is not
Docker creates an image with Tomcat installed with the process: Download the image first, start the container with mirroring, install Tomcat in the container, and then save the Tomcat container as a new image.
There are many ways Docker downloads images, such as
sudo
The container interconnect in Docker is a more complex topic, and the details are described in the following sections. To continue with the first 2 chapters, we created a MySQL container and a tomcat container that can use "docker ps" to see their status.[Email protected] ~/base $ docker pscontainer ID IMAGE COMMAND CR
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.