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
First, Docker's four network modes (host, container, none, Bridge)1, host mode, use Docker run when using the--net=host specified, Docker uses the same network as the host, the IP card that is seen in the container is the IP on the host# docker run-it--rm--net=host httpd Bash2, container mode, using--net=container:container_id/container_name multiple containers u
Docker-based java Web Service ConstructionGuideRecently, I want to update and maintain our applications. Android, IOS, and servers are all busy writing code and writing articles. Our server uses the java ssh architecture, and we plan to switch to Spring MVC + oau2. if we are free today, let's take a look at the previous server environment.
1. Docker is a service software based on the application layer. Cur
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 use the Linux system is fedora, just learning Linux, a lot of things will not, last night because you need to copy or pull files between the host System window 7 and the virtual system fedora, you need to install VMware Tools on the virtual machine system fedora, The detailed installation process is documented as follows:
Make sure that the virtual machine is powered on and that the virtual operating system is running correctly before installing.
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
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
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
Docker CP: Used for data copies between containers and hosts. Grammar
Docker CP [OPTIONS] Container:src_path dest_path|-
Docker CP [OPTIONS] src_path|-Container:dest_path
Options Description:
-L: Keep a link instance from the source target
Copy the host./rs-mapreduce directory to the/home/cloudera directory of the container 30026605dcfe.
VMware workstation software needs to rely on the host operating system.VMware vsphere is a VMware company that offers a server virtualization solution that can be installed and run directly on naked machines on a standalone system.Both VMware vsphere hypervisor and VMware vsphere are installed directly on physical mach
Understanding docker
The following are all translated from the official docker documentation. For more information, see Vikings.
What is docker?
Docker is an open-source platform designed to facilitate development, deployment, and application execution. You can use docker
Guide
Recently thought our application needs to update the maintenance, the Android, the IOS, as well as the server side to update, is busy writing the code not to write the article. Our server is the Java SSH architecture, to the time also intends to switch to spring mvc+oauth2, today is free, we have to build a server environment before the people to see, research.
1, Docker is based on the application layer is based on a service sof
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 >
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.