1. Questions
centos7.0 When installing Docker engine, the system has the following prompts:
# yum install docker-engine
Running Transaction Check
Running transaction test
Transaction Check Error:
file/usr/lib/systemd/system/blk-availability.service from Install of device-mapper-7:1.02.107-5.el7_ 2.5.x86_64 conflicts with file from the package lvm2-7:2.02.105-14.el7.x86_64
file/usr/sbin/blkdeactiva
Alpine Linux's official website:http://www.alpinelinux.org/#官方Https://pkgs.alpinelinux.org/packages #官方提供的安装包查询When you use Docker to create a container, the underlying image typically chooses Ubuntu or CentOS, regardless of the size of the image above 100MB.Alpine Linux is a security-oriented, lightweight Linux distribution.Alpine Linux employs musl libc and busybox to reduce the volume and runtime resource consumption of the system.While staying sli
This weekend experienced a Docker technology, recording learning notes.
What does >docker do?
Docker is an advanced container engine based on the Linux container (Lxc-linux container), based on the Go language development,
Source code hosted on Github, compliant with the APACHE2.0 protocol open source. The goal of Docker
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
user--group Specifying user groups--with-using existing packages and library filesDo make install problem self-Baiduecho "daemon off;" >>/usr/local/nginx/conf/nginx.conf #在nginx的配置文件里加上这一行很关键 so nginx can run in the background when Docker boots!(9) Compiling PHP(1) Preparing a PHP dependency packageYum install-y Bison bison-devel zlib-devel libmcrypt-devel mcrypt mhash-devel libxml2-devel libcurl-devel bz
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
Docker service is a declarative, scalable, load-balanced application. Docker service is a user-oriented application, while Docker swarm is an IT-oriented node cluster.
Docker service is often run on the basis of Docker swarm.
Common commands for
is free to apply to the Aliyun host, of course, to use Docker to deploy my server. But today we have a problem with the following details:
# Docker Info
fata[0000] Cannot connect to the Docker daemon. Is ' docker-d ' running to this host?
# docker-d
info[0000] +job serveapi
Well, on the Windows costs a little bit effort to run Docker.1. Need to enable Virtulization:OH hp Windows machine, your need to
Turn Off You laptop
Start it and click ' Esc ' repeatly
Until If jumps a menu, you click F10 to enter ' BIOS setting '
Then find ' Virtualization Technoloy (VTx) ' Select it and save exists.
Computer would restart, finally go to the ' Task Manager ' to check whether you have enabled it or not.2. The
You need to follow these steps:I haven't had a third step and I haven't been successful until I've tried a docker tag and uploaded the Docker hub without any problems.Step1 -- Find the ID of the local image:Docker imagesStep2--Login hub:Docker login--username=username--password=password--email=emailStep3--tag:docker tag step4 --push Mirror : docker namespace >
Docker Image:A docker image is a read-only template, for example, an image can contain the Ubuntu operating system environment, which installs Apache or other applications that the user needs.Mirroring can be used to create Docker containers. Docker provides a simple mechanism to create a mirror or update an existing i
When using the Dockerfile build image, the advantage is that the content sent to Daemo is too largeBuildimage:q_build/javaweb:20150910174642sendingbuildcontexttodockerdaemon 4.768gbsendingbuildcontexttodockerdaemonstep0: FROM192.168.100.123:5000/q_basic/javaweb:1.0--->0aab72ab2945step1: MAINTAINERtyleryanBut our dokerfile is very simple, so where does this extra content come from?After reviewing the information,The Docker client is found to send all f
Docker-9 supervisord refer to docker from getting started to practice, supervisorddockerRefer to docker from getting started to using Supervisor to manage processes
The Docker container starts a single process at startup, such as an ssh or apache daemon service. But we often need to enable multiple services on one mach
Log in as root, runVi/etc/yum.repos.d/public-yum-ol6.repo, add the following paragraphRun Yum Install DockerIn the run process because the network is slow, may appear the exit situation, again runs again, if encounters the Yum promptAnother app is currently holding the Yum lock;waiting for it to exitIt may be that the system is automatically upgraded and Yum is in a locked state.You can disable the Yum process by forcing:#rm-F/var/run/yum.pidRun service start
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 is a running virtual machine. A virtual machine image can create multiple running virtual hosts and be independent of each other. Note: Once created, container will persist if not removed with the RM command. So remember to de
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.