Hi, today we will learn how to use Weave and Docker to build an Nginx reverse proxy/Load balancer server. Weave can create a virtual network that connects Docker containers to each other, enabling cross-host deployment and Autodiscover. It allows us to focus more on the development of the application rather than on the infrastructure. Weave provides such a great
Docker officially recommends users to use their own custom network, so it is best to use a custom network when using the container, the default Docker use the Bridge network, the bridge network under the Docker container can not r
Docker is the latest hot technology, the technology industry is a network of red. In the nature of the technical people toss, try to change the local MySQL server to use Docker execution, this article records toss process, to make a memo.
The steps are as follows:
1: Install Docker
Find your own documents.
2: Using
Docker ~ Do not use yml for batch deployment service, dockeryml for deployment
Sometimes, in a continuous integration environment, sometimes the yml environment does not exist. It may only provide docker tools, but docker-compose may not be provided, in this way, if we want to automatically build all the projects under
The recent effort to write case code WETEXT for the Apworks framework has been in free time every day. In the text publishing and processing microservices, I intend to use Microsoft's SQL Server for Linux to do the demo, so I joined the MS SQL Server service in my docker-compose. In fact, running SQL Server in Docker is very easy, so let's make an introduction to
modifying the script, restart the container, equivalent to restart the service[[email protected] ~]# Docker stop grafana-alertinggrafana-~]# Docker start grafana- Alertinggrafana-alerting4. Open the browser, visit HTTP://IP, the homepage is as follows:Add a notification group (can add multiple, convenient grouping to send alarm settings)Name: Defines a notification name that specifies the send to when the
In order to use the Network Bridge in the form of Docker to access the intranet directly, you need to configure Docker, the actual test is as follows (need to pay attention to the Docker version of the problem)# eth1:192.168.56.101# eth2:192.168.58.101# 192.168.56.0/24 Management Network# 192.168.58.0/24 Data network,
A recent project to use Data Volume, here is a simple record.Data volumes can be used to store data for Docker applications, or to share data between Docker containers. A data volume is presented to a Docker container in the form of a directory that supports sharing between multiple containers, and the modification doe
create Group!!! Because services is a reserved word, you cannot make a group name. It is possible to change to a service.Vii. New ProjectViii. Push the original project (Myframework) to the remote master
CD desktop/microservice/myframework/
Git init
Git remote add Origin http://gitlab.zhaojigang.com:8929/service/myframework.git
git add--all
Git commit-m "Init"
Git push Origin Head:master
Note: During the push process, there may be cases where the host cannot be
Docker deep 2-linux configuration file Daemon.json Use example2016/12/9First, the status quo 1, the default does not have this configuration file, manually create one. 2. The operations we are currently using are in the section "Docker in-depth 2-storage-driven use Devicemapper (DIRECT-LVM) mode", Here's how we do it:-
Custom Network BridgeIn addition to the default bridge docker0 , users can specify a bridge to connect to each container.Use -b BRIDGE or to specify the bridge to use when starting the Docker service --bridge=BRIDGE .If the service is already running, you need to stop the service and delete the old bridge.$sudoservicedockerstop$sudoiplinksetdevdocker0 down$sudobrctldelbrdocker0 BRIDGE0 $ sudo brctl addb
This is a creation in
Article, where the information may have evolved or changed.
Use Docker to create a new Images on Ubuntu 14.04
Environment preparation
After Ubuntu 14.04.1 LTS was released, I happily went to the official website to download and create a virtual machine, but in executing the following command:
sudo apt-get update
Will always encounter the following error
W: 无法下载 http://extras.ubuntu.co
path/usr/local/nginx/sbin: $PATH
#EXPOSE Map port
expose CMD ["Nginx"]
Docker build-t Whh/nginx-file:v1.
Docker run-d-it-p 93:80--name nginx
Now look at the use of Dockerfile
Mirroring can be established by using the Docker build command.
Text file Dockerfile is usually required, as in the following example:
Https://github.com/boucher/docker/releasesHttps://github.com/boucher/docker/releases/tag/v1.9.0-experimental-cr.1Download:docker-1.9.0-devMV Docker-1.9.0-dev/usr/bin/docker[Email protected]:/usr/bin# ls DockerDocker[Email protected]:/usr/bin# docker-vDocker version 1.9.0-dev
Kafka Cluster management, state saving is realized through zookeeper, so we should build zookeeper cluster first
Zookeeper Cluster setup
First, the SOFTWARE environment:
The zookeeper cluster requires more than half of the node to survive to be externally serviced, so the number of servers should be 2*n+1, where 3 node is used to build the zookeeper cluster.
1.3 Linux servers are created using the Docker container, and the IP address isnodea:172.17.0
Dry Goods ~ How to Use powershell, bash, and docker in a project, powershelldocker
This title is straight enough. It's honest enough. Maybe you haven't used all these three items in the project, however, these three things will become the most popular technology in the next two years. They are not a framework or a design pattern, but designed for rapid deployment of programs and environments, in order to s
Docker ~ Use the existing network in yml and the existing network in dockeryml
Back to directory
When deploying a highly available cluster using docker swarm, we may need to configure some services in the yml file, and these services may need to use some public databases, these databases may already run in a containe
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.