Introduction
LVS is an excellent load balancing software, widely used in the major well-known websites, which support a variety of load balancing methods, such as: [Vs/nat,vs/tun,vs/dr and Full NAT, originally in the test environment to build a LVS, often need more than one physical host or virtual machine, In this article, you will find a way to use Docker to build a LVS cluster on a virtual machine, allowing developers to install the virtual machin
:
$ Docker Build–t Example _ app.
$ docker run–p 5000:5000–v $ (PWD)/Example_app:/Opt/example_app/–i–t-Example_app
You should get the feedback: Open the address localhost:5000 through the browser and you'll see that your site is running. If you are actually running in a VM or vagrant, remember to open port 5000.
Now that we're running the Web server, it's very close to what we're
There are many ways to deploy Meteor applications:
Compile into a node. JS app and deploy it Yourself (PM2, forever ... )
Using MUP or MUPX
Deploying on the Galaxy platform
Using Docker
Various deployment scenarios have their own characteristics, this article does not do a detailed comparison, here is a brief introduction of how to use
Docker using non-root users
Usually we use root when using Docker, the official statement is as follows:
The Docker daemon binds to a Unix socket instead of a TCP port. By default, Unix socket is owned by the user root and other users can access it with sudo. For this reaso
1. Download the dind imageDocker Pull Docker:dind2. Perform the imageDocker run-it--privileged--name some-docker-d docker:dind3. In-mirror processing--no-cache Icu-libs4. Download the Dotnet tar packageHTTPS://www.microsoft.com/net/download/thank-you/dotnet-sdk-2.1.302-linux-x64-alpine-binaries Very clear for theHTTPS://download.microsoft.com/download/4/0/9/40920432-3302-47a8-b13c-bbc4848ad114/ Dotnet-sdk-2.1.302-linux-musl-x64.tar.gz5. Copy to the ho
See all images
sudo docker images
Generate container
sudo docker run-it--net=host-v/home/tingting/dropbox/code/craterdetection/docker:/root/with an image Workspace Tingting/caffe:version1 Bash
Open Jupyter Notebook
Jupyter Notebook
In the browser, type: localhost:8890It is important to
With a learning attitude, I want to know how to create a basic docker image. So I found a description on the official docker website:
First, the creation of base image is related to the Linux release version to be created. Different releases are different.
The following are examples:
Use the tar command to create a complete imageUse debootstrap to create Ubuntu base image
$sudodebootstrapraringraring>/de
1, modify httpd.confNote characters before the following two lines are removed: #LoadModule proxy_module modules/mod_proxy.so#loadmodule proxy_http_module modules/mod_proxy_http.so2, adding proxy rulesAt the end of the httpd.conf file, add a forwarding rule for example: Proxypass/baidu Http://www.baidu.comProxyPassReverse/baidu http://www.baidu.com will/ Baidu start of the request forwarded to the homepage3, after the configuration file is changed, create the dockerfile in the sibling directory.
Docker container with the following command:Docker run--name mysql5.7-p 3306:3306-e mysql_root_password=123456-d mysql:5.7Note that the container name here is: Mysql5.7,mysql root user password is: 123456, map host child port 3306 to container Port 3306, warehouse name MySQL and tag (tag) uniquely determine the image to be specified, In fact, if there is only one MySQL is also necessary to tag, the result of executing the command returned is:9238d9fe
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 the directory in the container does not exist, it is automatically created. The next step is
1. Environment:Lsb_release-a[Email protected]:~$ lsb_release-aNo LSB modules is available.Distributor Id:ubuntuDescription:ubuntu 16.04.3 LTSrelease:16.04Codename:xenial2. Install Docker first and run it (already written and not repeat)3. Pull the imagedocker pull yinheli/docker-thunder-xware:latest4. Create a download directorymkdir Thunder (randomly created, author is created in the current user's home di
Modify the Application.properties file for the Springboot application, and change the MySQL host to the MySQL Docker container name, which is mysql1 consistent with the Docker-compose.yaml file. )
Spring.datasource.url=jdbc:mysql://mysql1:3306/sppanblog?characterencoding=utf8zerodatetimebehavior= Converttonull
spring.datasource.username=root
spring.datasource.password=123456
Packaged
This article covers the process of deploying the ABP for the ASP. NET core Open source project in the CentOS system Docker
Step 1. Pull the ASP. NET Core base imagedocker pull microsoft/aspnetcore2. Writing the Dockerfile fileFROM docker.io/microsoft/aspnetcoreWORKDIR /appCOPY . .ENTRYPOINT ["dotnet", "QXD.BBS.Web.Mvc.dll"]3. Publish Site FilesCopy the site's publish file to any location and place it with the Dockerfile file4. Compiling Dockerfiledo
English Official Installation Guide Docker is a very hot technology now, Docker uses linux-specific kernel-specific, so Mac OS X cannot be run directly locally. However, it can be implemented by installing Boot2docker application. Boot2docker contains the virtual Box Vm,docker and boot2docker management tools. With the help of running a
Using Docker in Mac is actually using Boot2docker to start a Linux virtual machine "BOOT2DOCKER-VM"first through VirtualBox, so that after startup, Starting container from Docker, even if you add a port mapping, the host is inaccessible because this port mapping is the port that maps VirtualBox-initiated virtual machin
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 names82756bbf1a00 ubuntu "/bin/bash" 53minutesago
Experiment of using Docker to enlarge capacity under LVS
topology
Lap Environment LVS
1. Installation components: Keepalived and LVs
Note that keepalived Apt-get installed version of the bug, in the automatic testing of RS, has been reported error, not automatically detect, download 1.2.19 version of the source code compiled after installation PIDM minimises.
Apt-getupdate
Apt-getinstall Ipvsadm
Apt-getinst
Objective: To create an Apache-hosted image and launch 5 Apache containers from within a Linux external service1. Installing ApacheDocker run-t-I--name=qxy_apache centosyuminstall httpdexit2. Make imageDocker commit Qxy_apache Qxy_apache:v1. 0 [email protected]-1 ~]# Docker imagesrepository TAG IMAGE ID CREATED VIRTUAL sizeqxy_apache v1. 0 9b6f8b6054b5 seconds ago 19
MySQL has already provided Docker image, which makes it easy to open a MySQL server. There are two ways to connect the official
Access the MySQL server container through--link in other app Docker containers
Start another MySQL container as a client, access the MySQL server container via--link
Both of these methods are in the container, and it is simple if the client does not access the
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.