Install Docker in CentOS 7Docker Introduction
Docker is an open-source application container engine that allows developers to package their applications and dependencies to a portable container and then publish them to any popular Linux machine, you can also achieve virtualization. Containers fully use the sandbox mechanism and do not have any interfaces between them.
Official
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
Docker Quick Start series (5): basic network configuration and communication during storage, docker Quick StartIntroduction
Two major functional modules that are essential for a web service to run: business processing, data services, and large web services require more components, which usually requires multiple containers, however, we also need to allow network communication between these containers and co
Docker boot2docker fails to be started after Docker is installed on Mac. dockerboot2docker
After installing Docker on Mac, you must start boot2docker to load VM before using the docker command. However, an error occurs when I start boot2docker after installing boot2docker:
Waiting for VM and
Development Tool docker Usage Details, development tool docker detailsImages
Install domestic Images
Pull Image
Docker pull centos: latest
With the image, we can start and run a container Based on the image.Container docker commit
You know, when we run a container (if we do not use volumes), any file modifications
http://hongge.blog.51cto.com/ Using Supervisor to manage processes The Docker container opens a single process at startup, such as an SSH or Apache daemon service. However, we often need to open multiple services on a machine, this can be many ways, the simplest is to put a number of startup commands in a startup script, start the time to start the script directly. Example: Docker run–d mirroring/run.sh The
This way the Ubuntu installation process, first of all the official website documents
If you haven ' t already do so, log into your Ubuntu instance.
Open a terminal window.
ADD the new gpg key.58118E89F3A912897C070ADBF76221572C52609D
Open the /etc/apt/sources.list.d/docker.list file in your favorite editor.If the file doesn ' t exist, create it.
Remove any existing entries.
Add an entry for your Ubuntu operating system.The possible entries is:# Ubuntu Precisedeb https://apt.dockerp
After the front upload files to the server, the server returned to the foreground of the file list in Chinese garbled, all the Chinese file name into? , the English file name is displayed normally.
The problem is positioned to find that the Multipartfile class of the background code has this exception when executing the Transterto method, but Multipartresolver and encodingfilter in the configuration file set are already UTF-8. Excludes code exceptions. KUBECTL exec enters into the
Docker mount the host directory, access to the appropriate files Premission denied permission access issues,
[Root@localhost soft]# Docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
Docker.io/centos 7.2.1511 686672a1d0cc 5 weeks ago
//mount the/soft directory on the host to Docker directory,
This paper mainly records the use of Docker/nvidia-docker installation depth learning picture text recognition, development of the operating environment.
In the image text recognition, need to use CTPN and CRNN, the server is ubuntu16, but the above two frameworks (GitHub existing) can only run on UBUNTU14. Considering, publishing and other issues, decided to use Docker
Install docker and ubuntu
Docker
Environment:
Centos 6.5 64-bit
If the system is installed by default, the centos kernel is
[Root @ localhost ~] # Uname-Linux localhost. localdomain 2.6.32-431. el6.x86 _ 64
Docker supports 64-bit kernel for versions 3. xx and later.
1. First, upgrade your own kernel level 2.6-"3.xx
Steps:
[Root @ localhost ~] # Rpm-ivh http:/
I have the opportunity to build a Docker micro-service architecture in my current job, a lot of people will share their experience of using Docker, I think I will be no exception. So I've summed up some of the things that you might use in your daily use of Docker.
1. Deployment of multiple Docker instances on a single
The difference between Docker and Docker machineDocker is an application of the Client-server architecture, and there are Boshi: Docker Engine. Docker is just a nickname for Docker Engine, and of course Docker has other meanings,
the difference between Docker and Docker machineDocker is an application of the Client-server architecture, and there are Boshi: Docker Engine. Docker is just a nickname for Docker Engine, and of course Docker has other meanings,
Due to the installation of Dockerce at the time of downloading the official website of the long-term timeout situation, so in the installation of Docker need to change the download image to the domestic mirror library. So there's the Aliyun Mirror library.
Follow the steps in Aliyun when installing CentOS:
# step 1: Install some of the necessary system Tools sudo yum install-y yum-utils device-mapper-persistent-data lvm2 # step 2: Add software source
Tags: always folder ges latest command put PWD general execInformation:
Docker version ( $ docker --version ): Docker version 18.03.1-ce, version 9ee9f40
System Information: WINDOWS10 Professional Edition
MySQL is mounted in Docker's volume 1. The first step: 1 Docker volume create Mysql-data 2. S
A wild full-stack engineer configures the scheduled task crontab (DaoCloud + Docker + Laravel5) in a Docker container and prefers to study various new technologies.
Follow Now
Recently, the project involves the function of a scheduled task. so I went to study how to use crontab over the past few days and successfully enabled the function on my computer according to relevant online tutorials.Add crontab
1. Select the base imageDocker Pull Tomcat:7.0-jre82. Generate an HTTPS certificateKeytool-genkey-alias Tomcat-keyalg Rsa-keystore Tomcat.keystore[Email protected]:~/ssl# lsTomcat.keystore3. Launch the Tomcat container and import the certificate[Email protected]:/usr/local/tomcat# ls/tmp/Tomcat.keystore[Email protected]:/usr/local/tomcat# mkdir Keys[Email protected]:/usr/local/tomcat# cp/tmp/tomcat.keystore keys/[Email protected]:/usr/local/tomcat# ls keys/Tomcat.keystore4. CommitDo not exit con
1, from the container inside copy files to host.
Answer: Execute the following command in the host
Docker CP container name: The path of the file to be copied inside the container to be copied to the appropriate path of the host
Example: Assuming that the container is named Testtomcat, the file to be copied from the container is:/usr/local/tomcat/webapps/test/js/test.js, now to move test.js from the container Copy to the host's/opt path, so the comm
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.