How to deal with Docker in half a day and Docker in half a day
In fact, the volume ker is still very limited in real business scenarios. The Dockerfile script is not so easy to write, and some applications are not so well installed.
Don't talk nonsense. Teach you how to deal with docker for half a day!
Install dependencies and
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[[emailprotected]~]#dockerimagesrepository TAG IMA
Installation Environment Preparation
Linux kernel version
Uname-a
Docker version
sudo docker version
Installing Docker Registry
sudo docker run-d-v/home/hzq/registry:/var/lib/registry-p 5000:5000--restart=always--privileged=true--name registr Y registry:latest
-v/home/hzq/registry:/var/lib/registry by default, the wa
1. View docker information (version, info)
# view Docker version
$docker version
# Displays information about the Docker system
$docker Info
2. Operation on image (search, pull, images, RMI, history)
# Retrieve image
$docker s
Application background:Docker is the first to run on Ubuntu and Debian, using AUFS memory. Because Docker is becoming more popular, many companies want to use it on Rhel, but the upstream kernel does not include AUFS, so Rhel cannot use Aufs.Eventually, developers developed a new back-end storage engine Devicemapper, based on existing device mapper technology, and made Docker support pluggable, and now ther
[root@i-k11xnd1o ~]# Docker images REPOSITORY TAG IMAGE ID CREATED SIZE Docker.io/hello-world latest 1815c82652c0 5 weeks ago 1.84 KB Docker.io/blockchain101/ethereum-geth 1.6.5 1e23e07389b2 5 weeks ago 1.534 GB [root@i-k
11xnd1o ~]# Docker run--name Hello Hello-world Hello from docker!
This message shows the your installation appears to be working correctly.
Tags: size alt produce ant int conf native INF basic operationRecently really busy as a dog, other content, such as a little idle to update together.This article is mainly about the use and configuration information of the Docker version of MySQL. Because the internship company needs to engage in a docker test environment, it also needs to include basic dependencies. Most importantly, because this
Docker InstallationA. Docker installation 1.1.1 Docker installed on rhel/centos **Recommended isRhel/centosthe version of the system must be greater than6.5above6the best series6.6RunDockermore stable, less than6.5the following installationDockerfirst to upgrade the kernelDockerUnstable operation,7series has putDockerThe package is placed in its own libraryfor C
First, what is Dokcer?Docker is an open source project that was born in early 2013 and was originally an amateur project within the DotCloud company. It is based on Google's launch of the Go language implementation. The project later joined the Linux Foundation and complied with the Apache 2.0 protocol, and the project code was maintained on GitHub.Docker has been widely watched and discussed since the open source, so that DotCloud company later chang
This is a creation in
Article, where the information may have evolved or changed.
1,harbor
The development and operation of container applications requires reliable image management. In terms of security and efficiency, it is necessary to deploy registry within a private environment. Project Harbor is a registry server open source project designed by the VMware company China Team for enterprise users, including Rights Management (RBAC), LDAP, auditing, management interface, self-registration
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
This article is from the "Knowledge Forest"
In the previous explanation "09-docker run Wordpress+mysql Fast build Web site (Docker series)" described the use of --link way to let Wordpress and MySQL container, which is about to become obsolete and needs to be replaced by a Docker network method.
The following is the way to update the Web site in the 09-
Install the required softwareDockerDocker-composeThe contents of the configuration Docker-compose.yml file are as follows:#load balancer'll automatically update the config using consul-templateLb:Image:yeasy/nginx-consul-template:latestHostname:lbVolumes-/usr/soft/consul/logapi.conf:/etc/consul-templates/nginx.confLinks-Consulserver:consulPorts-"80:80"Consulserver:Image:gliderlabs/consul-server:latestHostname:consulserverPorts-"8,300:8,300"-"8,301:8,3
1 First you have to prepare a hub account, go to https://hub.docker.com register it!2 Create a new warehouse at the hub, which is similar to the one on GitHub. Creation---> Create repository (Creating a knowledge Base) and then just a name, I'll call it Ubuntu, so the path is Wherein/ubuntu.3 Run Docker PS View container, here is to get to container ID4 Commit a container command: Docker commit CONTAINER ID
Restart the server, previously able to run the Docker network applications can not be opened normally.
Because of the use of CENTOS7, so speculation is likely to be a iptables problem.
Docker start or run always prompt for a similar error:No Chain/target/match by that name
Google a bit, and some people actually encountered similar problems.Centos 7 of/etc/sysconfig/iptables files:
*nat
:P rerouting ACCEPT [
This article is from the "Knowledge Forest"
In the previous example, the communication between the container and the container is done through the IP address in the network, which is obviously unreasonable, because the IP address may change when the container is started, and it is also more difficult to remember.
The solution to this problem is to use a network alias, the container is allowed to be alias on the network, and the alias can be directly accessed in the network, which is similar to t
Build a Docker registry private image to resolve the Docker private warehouse push error
applies To: Docker 1.8 Environment: Centos7
Each version of the Docker modification configuration content is different, please be optimistic about the installation of the Docker version
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
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.