--------------------------------------------------------------------------------------
Blog:http://blog.csdn.net/chinagissoft
QQ Group: 16403743
Purpose: Focus on the "gis+" cutting-edge technology research and exchange, the cloud computing technology, large data technology, container technology, IoT and GIS in-depth integration, explore the "gis+" technology and industry solutions
Reprint Note: The article is allowed to reprint, but must be linked to
Basic concepts:
Container
Container. Each container can be viewed as a standalone host. The creation of container usually has an image as its template. Analogy to a virtual machine can be understood as image is the mirror of the virtual machine, and container i
Preface
We have mentioned earlier that if we build the Docker cluster, there will be the need for a Docker instance network connection across the host, and in order to save the IP resources of the host network, we try to use DOCKER0 own network connection, add Host network IP to the main node (container instance), This should be a more desirable business requirem
in a lightweight sandbox container. LXC is useful when you need to set up a development and testing environment that is easy to clone, or want to install applications in a security sandbox.
Docker is an open-source tool that allows users to conveniently deploy Linux iner containers. Docker quickly became an unofficial
Docker intranet: Docker-registry with Nginx SSL on CentOSSince Docker-registry is also a software application, the easiest way to do this is to use the officially provided image registry that has been deployed. The official documentation also gives suggestions for running sudo docker run -p 5000:5000 registry commands
use Docker-enter to enter Docker containerDocker containers do not have sshd service, but also want to enter Docker how to do, we can use the nsenter into the Docker container namespace namespace to virtual login Docker container.
valuable experiences in your daily practice and make common progress!
We can use Docker to deploy Python applications in a simple and efficient manner. at the same time, we also have some best practices to help us complete the deployment happily. Of course, it doesn't mean that these best practices are the only way to complete the deployment, but our team finds them highly available and easy to maintain.
This article is from the "Knowledge Forest"
Three networks (Docker network LS) are default when the Docker service is successfully installed:
C:\users\zsl-pc>docker Network LS
network ID NAME DRIVER SCOPE
992344cd89fe Bridge Bridge local
06445f4f5774 host host local
2d964ece79b9
;3306/tcp, 33060/tcp favoriteswebfavorites111_mysql_1Based on the Docker container ID information queried above, execute the following commanddocker exec -ti CONTAINER_ID bash#比如进入项目容器中[[emailprotected]_73_217_centos ~]# docker exec -ti a466ce6e58a5 bash[emailprotected]:/app# ps -ef|grep java...Exit the container
SIZEspringboot/spring-boot-docker latest 99ce9468da74 6 seconds ago 117.5 MBspringboot/spring-boot-dockerIs the image we built, the next step is to run the image-p 8080:8080 -t springboot/spring-boot-dockerAfter the boot is complete we use docker ps to view the running image:docker psCONTAINER ID IMAGE COMMAND CREATED
1. Docker Container Restart policy
The restart policy for Docker containers is a start-up strategy for production environments that can be ignored during the development process.
Docker container restarts are done by the Docker da
adjust the application according to the load, For optimal performance.
Starting the Gunicorn is simple:
# Installing PIP3 install gunicorn# running server Gunicorn api:app-w 4-b 127.0.0.1:5000
Finally, run your application server behind Nginx so you can load balance .
Supervisord
Have you ever thought of running multiple processes in a container? I think Supervisord is definitely your best aid tool. Suppose we want to
-datasudo docker start Shipyard-rethinkdb-data SHIPYARD-RETHINKDB ShipyardIconLogin:
Default username/password is Admin/shipyardMain interface:
Dashboard shows the CPU and memory usage that was specified when adding engine.Container:Docker-shipyard-containersAll containers for all Docker hosts managed by shipyard, including the stop and running states. You can click the
...3[Ok]docker.io Docker.io/davidcaste/debian-oracle-java Oracle Java8(and7) over Debian Jessie2[Ok]docker.io Docker.io/kaluzki/oracle kaluzki/oracle2[Ok]docker.io Docker.io/clincase/oracle clincase Oracle DB server Image1[Ok]docker.io Docker.io/JCKRZ/DEBIAN-ORACLE-JDK Vanilla Debian + Oracle JDK1[Ok]docker.io Docker.io/publicisworldwide/oracle-core the core image based on Oracle Lin ...1[OK]You can see that there are many versions, 11g,12cChoose to get 12c version here[email protected] rac1:/h
that does the port mapping:Docker run-d-P 8888:8080 tomcat:latestHost Port: The port inside the container-D: Indicates background run-P: Indicates that the port of the host is mapped to a port of the container10) Install MySQL command: Docker pull mysql:5.6Start Mysql:docker run--name mysql01-e mysql_root_password=123456-d MYSQLDo port mapping run Mysql:docker run-p 3306:3306--name mysql01-e mysql_root_pas
Google Cadvisor is a great tool for monitoring Docker containers, but it only shows real-time data by default and does not store historical data. In order to store and display historical data, custom displays, you can integrate Cadvisor with Influxdb, Grafana, a foreign expert Brian Christner wrote an article "How to setup Docker monitoring", Describes the deployment method.Brian's approach is to manually r
ports: - "49080:8080"It tells us that the 8080 port of the Docker image is mapped to 49080 of the host, so you can access it by accessing http://localhost:49080. If you use Boot2docker, you can get the IP of the virtual machine via the following command:boot2docker ipThe VM‘s Host only interface IP address is: 192.168.59.103The returned result is your IP, which can be accessed through http://192.168.59.103:49080 in this example.How to
Introduced inside Docker The image is running on the filesystem and the parameters are that it will never change. The container is an instance of the mirror runtime. when you're in Docker When you run a command on it, he runs the following actions:1. Check if the image exists2. if not, download3. Load the image run the action you wantView Local containers[[email
an existing application to migrate seamlessly, and on the other hand, IaaS is somewhat cumbersome in some way, and the advent of Docker, aptly filling the middle, is an encouraging technique for developers and IT managers alike.The evidence suggests that Docker's current frenzy of growth is an indisputable fact:More than 460 contributors have exceeded 8,700 submissions in the last 15 months, have been downloaded more than 27.5 million times, more tha
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.