how to use docker

Alibabacloud.com offers a wide variety of articles about how to use docker, easily find your how to use docker information here online.

Use Docker to build consul cluster +registrator for automatic service registration.

. Define template files and result files[Email protected] ~]# Cat/tmp/service.ctmplUpstream Python-service {Least_conn;{{Range service ' Python-micro-service '}}server {.} address}}:{{. Port}} max_fails=3 fail_timeout=60 weight=1;{{Else}}server 127.0.0.1:65535; # Force a 502 {{end}}}server {Listen default_server;CharSet Utf-8;Location/{Proxy_pass Http://python-service;Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;Proxy_set_header Host $host;Proxy_set_header X-real-ip $remote _addr

How to use weave and Docker to build Nginx reverse proxy/Load Balancer server

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 use network commands to create your own network

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

Use Docker to run MySql installed in brew on Mac.

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

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

Use Docker to run Microsoft SQL Server 2017

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

Use Grafana to display monitoring charts for Docker containers and set up email alert rules

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

Use the bridge form under Docker

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,

Use the volume of Docker storage volume

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

39th Chapter Gitlab Construction and use (Docker version)

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 installation and sharing of common commands and sharing of common docker commands

state DOWN Link/ether 02: 42: cc: f6: 67: 93 brd ff: ff Inet 172.17.0.1/16 scope global docker0 Valid_lft forever preferred_lft forever 15. View logs (for troubleshooting) Tail-f/var/log/messages | grep docker 16. Basic commands Docker search Docker pull java Docker images Docker

Docker deep 2-linux configuration file Daemon.json Use example

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:-

In addition to the default Docker0 bridge, start the Docker service how to specify which bridge to use

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

Use Docker to create a new Images on Ubuntu 14.04

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

Docker the use of Dockerfile to create shadowsocks multiple-user version of the image, to achieve rapid cluster deployment

Mirror capture[Root@docker-node01 ~]# Docker Search Shadowsocksr_manyuserNAME DESCRIPTION Stars Official automatedBenyoo/shadowsocksr_manyuser based on SHADOWSOCKSR version of Manyuser package 0[Root@docker-node01 ~]# docker run-d--name=shadowsocks \-P 10000-10010:10000-10010 \-P 10000-10010:10000-10010/UDP \-E manyuse

Docker Dockerfile Use Example _docker

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:

Use native Docker checkpoint/restore on Ubuntu 14.04

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

Use the Docker container to create Kafka cluster management, state saving is achieved through zookeeper, so the first to build zookeeper cluster _docker

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

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

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

Total Pages: 15 1 .... 7 8 9 10 11 .... 15 Go to: Go

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.