learn to use docker

Learn about learn to use docker, we have the largest and most updated learn to use docker information on alibabacloud.com

Docker API Simple to use

By default, Docker daemon listens on Unix://var/run/docker.sock, and the client must have root privileges to interact with daemon.In order to use the Docker REST API, you can stop the Docker service and then add the-H parameter at startup: service Docker stop

Use the Aliyun container hub to accelerate Docker mirror downloads __container

Aliyun's mirror services are well done, including the commonly used Debian (Ubuntu) and Redhat (CentOS) mirrors, the repo of all kinds of open-source software, and Docker's container mirrors, all copy one on a domestic server. Download speed is no longer limited by the big firewall you know. System and various types of open source software backup directly to see http://mirrors.aliyun.com/, the following alone Docker hub in Ali's Mirror accelerator set

Use Docker directly without adding sudo

0.5.2the daemon from the beginning of Docker is always running as root user. The Docker daemon binds to a UNIX socket instead of a TCP port. The UNIX socket is the root user by default, so you must add it when using Docker sudo .From the 0.5.3 beginning, create a name docker group and then join the user in this group.

Docker volume use detailed and example _docker

Docker Volume use A data volume is a specially specified directory that leverages the container's UFS file system to provide some stable features or data sharing for the container. A data volume can be shared among multiple containers. To create a data volume, you can create a data volume with the-v argument just after the Docker Run command, and of course you

Docker installation and ease of use

1. Installation of Docker( "Installing Docker" here is actually installing Docker Engine) $ sudo apt-get intasll Docker.io Note:apt-get is a management tool for Ubuntu installation software 2. Verify that the Docker engine is installed successfully # Check that you have a working i

Use docker-compose to deploy the development environment

Functions of docker-compose Docker-comopse can help us quickly build a development environment. For example, you can deploy redis, MongoDB, rabbitmq, MySQL, Eureka, and configserver on the local machine once, and then let them be the basis of other projects, which can be implemented.Communication between containers-links Since each docker instance is a closed env

Use Docker to build TOMCAT runtime environment

Due to display formatting problems, recommended to the original blog read: https://my.oschina.net/sunchp/blog/616526 1 Docker vs. virtual machines 2 Building process 2.1 Preparing the host system Prepare a CentOS 7 operating system with the following requirements: Must be a 64-bit operating system Recommended kernel is above 3.8 View your CentOS kernel using the following command: # Uname-r 2.2 Installing Docker

Use Navicat to connect Docker mysql5.7.20 under ubuntu16.04

Summary:This article will show you how to use Docker to create a MySQL container and use navicat to connect to the MySQL service, and finally provide a solution to the problem of Navicat Chinese garbled.First, create a MySQL container under Docker 1, download the latest version of MySQL Image:$

Build and use a private docker repository.

1. Download the repository Image Docker pull Registry 2. Create a private repository container-D indicates that the background is startedDocker run-D-P 5000: 5000-V/opt/data/Registry:/var/lib/Registry 3. Remove port 5000 from the FirewallFirewall-cmd -- zone = public -- add-Port = 5000/tcp -- Permanent 4. Verify that the private repository is successfully started.Http: // 192.3.8.12: 5000/v2 5. Package the imageDocker tag my-nginx: V1 192.168.56.20

Docker installation, use

1: Install: 80936757 Sudo apt-Get install docker. Io 2: Use docker to create a container, such as creating an operating system https://www.cnblogs.com/ivictor/p/4834864.html inside the container Sudo docker run-it-V/home/liyafei/myfile:/myfile-P 9000: 9002 Ubuntu: 14.04/bin/bash -V: Local folder of the operating system

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

Use Docker to install Redis images under Ubuntu and share with Redis containers

Use Docker to install Redis images under Ubuntu and share with Redis containers1. Install the UBUNTU2. Sign in to Ubuntu with PuttyWelcome to Ubuntu 14.04.1 LTS (gnu/linux 3.13.0-40-generic x86_64)* documentation:https://help.ubuntu.com/System information as of Wed Dec 06:41:16 UTC 2014System load:0.01 processes:228Usage of/: 6.0% of 28.80GB Users logged in:0Memory usage:11% IP address for eth0:10.205.178.2

CentOS use Systemctl to enable Docker container (container) to boot

container) # Systemctl Enable Docker.service # Systemctl enable Docker-container\ @redis. Service Step Fifth: Check to see if it starts properly # Systemctl start docker-container\ @redis. Service # systemctl status docker-container\ @redis. Service Fourth Docker-container\ @redis. Service services, which are actual

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

Linux docker installation and use tutorial _docker

-th filesystem Type Size Used avail use% mounted on none Aufs 9.1G 1.6G 7.1G 18%/ tmpfs tmpfs 115M 0 115M 0%/dev shm tmpfs 64M 0 64M 0%/dev/shm/dev/sda1 ext4 9.1G 1.6G 7.1G 18%/etc/hosts 9, run the container named CentOS Mirror (virtual out of 1 CentOS system) 1 The container that runs the CentOS mirror Docker Run-i-T CentOS 2) View version root@10.1.10.236:~#

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

Docker use Aliyun Mirror Library to accelerate __ Aliyun

Docker uses Aliyun Mirror library to accelerate In the domestic use of the official Docker registry download Docker mirror speed is very slow, domestic Aliyun Docker mirrored warehouse has accelerated services. This article will explain in detail the specific configuration

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.