Project background:While we are using Docker to bring us convenience, sometimes we need to build a docker cluster, this time, the following content is very valuable.Lab Environment:VMware Workstation 11Under the centos7.0 systemServer: ip:192.168.0.60SECURECRT (SSH remote connection software)Software Introduction:Here are two things I know about Docker.http://939
, spring boot works by creating and starting a new spring framework-based project (Getting Started tutorial qkxue.net). Spring boot selects the most appropriate spring sub-project and third-party open source libraries for consolidation. Most spring boot applications require very little configuration to run quickly. Spring boot contains the following features:Create a spring app that can run independently.Em
Making Mirrors
1. Download CentOS image
Docker Pull Centos:latest
CentOS version of download is 7.3
2. Start a container by CentOS mirroring
Docker Run-i-T Centos/bin/bash
3. Install the required environment in the container
Reference: Install PHP environment under CentOS 7.x
# Update Source
RPM-UVH https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.n
Many official versions of Linux images can be downloaded directly from the official repository (Public repositories. Considering the security and speed, we may want to set up a private repositories in our own LAN to store our own images. docker-registry is the tool we need.
git clone git clone https://github.com/docker/docker-registry.gitcd
registry imageDocker run--entrypoint htpasswd registry-bbn Test 1 >/home/registry/auth/htpasswdchcon-rt Svirt_sandbox_file_t/hom e/registry/4, run registry and specify parameters. Includes the user password file and the CA book location. --restart=always always automatically restartsDocker run-d-P 5000:5000--restart=always--name registry-v/home/registry/auth:/au
ago258.6Mbmysql5.7E95cbb9f48ea5Days ago258.6MBStart the MySQL container[Email protected] ~/base $ docker run--name db001-p3306:3306 - eMysql_root_password=admin- DMysql:5.7#上面这条语句启动了一个名字叫 db001 container, his root password is admin, mapping the host host port 3306 to the container port 3306, these are manually specified. [Email protected] ~/base $ docker pscont
1. Download the Docker Toolbox first:http://get.daocloud.io/#install-docker-for-mac-windows2. Download and install the git Windows clientThe installation is all gone, all allowed.ClickStart Docker if you see the following interface is displayed successfully:The first time is slow, to install the default this system, after startup, you can open your virtual machin
Tags: nosql database MongoDB Run code function database Mina doc MongodMongoDB is a powerful NoSQL database that briefly explains how to run MongoDB in Docker.Run MONGO DB imagedocker run --name aihr -p 27017:27017 -v /data/db:/data/db -d mongo:3.4 --authLoginSign in and create your own usersdocker exec -it aihr mongo admindb.createUser({ user: ‘lwk‘, pwd: ‘12345
1, download mirror
First of all, we need a system to take the official CentOS as an example, first pull down
[Root@zabbix-3 ~]# Docker Pull CentOSUsing default Tag:latestLatest:pulling from Library/centosA3ed95caeb02:already existsA3ed95caeb02:already existsdigest:sha256:1a62cd7c773dd5c6cf08e2e28596f6fcc99bd97e38c9b324163e0da90ed27562Status:image is up to date for centos:latest[Root@zabbix-3 ~]#2, in the boot container, to compile the installation
/bin/docker run-p the: the-D Apache4. After the configuration is complete, save5. Configure Jenkins UsersIt cannot be built at this time because the Jenkins trigger script is not the root user, so Jenkins is required to be exempt from the user and the user is added to the Docker group, otherwise the container ID is not obtained.[Email protected]:~# vim/etc/sudoer
Dotnet run and dotnet build run for a long time
It was suddenly found that VS2017.15.4.5 was very slow to open a project, and it took a long time to generate a project,
I always thought it was a problem with vs updates, and found that it was the cause of the project.
If a folder in the dotnet core project contains a large number of files, such as node_mo
Jboss"$JBOSS _home/bin/shutdown.shFi;;*)echo $ "Usage: $ {start|stop}"Exit 1;;EsacExit $RETVALAutomatic startup script AuthorizationRun the chmod 755/etc/rc.d/init.d/jboss command to make the script file executableRegister JBoss ServiceRun the Chkconfig--add/etc/rc.d/init.d/jboss command to add it to the serviceStart JBossRun the sh/data/app/jboss-4.2.3.ga/bin/run.sh commandStop JBoss Service: Service JBoss StopStart JBoss Service: Service JBoss startTest validation: Show JBoss Welcome manageme
DOCKER+REDIS3 Cluster Environment Construction
Docker host new 3 containers, three containers as three nodes of Redis cluster, three master, three slave!
Experimental objectives:
The client accesses the following Redis clusters via 192.168.100.67
IP address with container ID 9cb25bcd52d1:172.17.0.5 port:7005 7006
IP address with container ID 91dac3ea23c9:172.17.0.4 port:7003 7004
IP address with contai
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
See the code base for details:Https://github.com/flasheryu/docker-jettyA personal GitHub account is set up inside the settings of the Docker hub.Then create a new repository in Dockerhub and associate this repository with GitHub.Whenever a new code check in is available, the Docker hub will automatically build Dockerfi
The project uses LINUX as a virtual host, and then uses vagrant, docker, and virtualbox to build php and mysql development and testing environments. How can this problem be solved? The project uses LINUX as a virtual host, and then uses vagrant, docker, and virtualbox to build php and mysql development and testing envi
Before the interview, the interviewer asked me in addition to the resume these you have other level, I think I said I solve the bug better than the average person, but the interviewer a face disdain to tell me, solve the bug is more need experience, then gave me a problem is Redis is get not, actually have value, How to solve this kind of bug, I said that look at the log ... Anyway said some ideas, the interviewer to deny. The reason is to find a bug more is to need experience, then there is not
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.