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
In front of our experimental environment there is only one Docker host, and all the containers are running on this host. However, in a real environment there will be multiple hosts, where containers are started, run, stopped, and destroyed, and related containers communicate with each other over the network, regardless of whether they are located in the same host.How do we manage this multi-host environment effectively?The first problem we faced was i
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:/
We often talk about onBlur events, onfocus events (js), and onbluronfocus events.
The onFocus event is an event that occurs when the cursor falls in the text box.
An onBlur event is an event that occurs when the cursor loses focus.
You can compile the following example:
1. html
Another example is as follows:
2. html
The previous article about the onBlur event a
Before we did the experiment is on a host, in fact, in the real environment there are multiple hosts, containers on these hosts to start, run, stop and destroy, related containers will communicate with each other over the network, whether they are running on the same host.For this kind of song Multi-host environment, how should we manage it efficiently?The first problem is: Install and configure Docker for all hostsPreviously, we installed a
When using the Dockerfile build image, it is sometimes found that the content sent to daemon is too largesendingbuildcontexttodockerdaemon 4.358gbstep0:fromxxx.xxx.com/centos:7--->218081f3bcdcstep1 :RUNmkdir-p/data/mysql/base--->Usingcache---> ac4aa04a93a1Step2:RUNaddusermysql--->Usingcache --->f30c90e0e589Step3:ADDbase/data/mysql/base---> 3666ada5715cremovingintermediatecontainerd65c5abdfe5cstep4:entrypoint /data/mysql/base/entrypoint.sh--->Runningin3be4e22baff7---> a73907b2fbd5removingintermed
1. Generating a Docker image for an ASP. NET Core ApplicationDownload this case project: Https://github.com/dotnet/dotnet-docker/tree/master/samples/aspnetappWhen the download is complete, generate a mirror named Aspnetapp image for this project.Docker build-t Aspnetapp.In order to make a difference I created a a.html file in wwwroot after the Aspnetapp image was generated, and another image named Webappa w
Today in the start of a Docker run Nginx instance, when the directory is mounted, access to the static directory, insufficient permissions
The commands executed are:
Docker run
--name my-nginx
-d-p 80:80
--restart=always
-v/cloud/nginx/webroot:/usr/share/nginx/ HTML:RW
-v/cloud/nginx/log:/var/log/nginx
-v/cloud/nginx/config/nginx.conf:/etc/nginx/nginx.conf:ro -
D Nginx
Description
1. Where/cloud
Reproduced in the process, the picture is missing, the code shows confusion.
For better learning content, please visit the original version:
https://www.missshi.cn/api/view/blog/5a6328110a745f6335000006
Ps: Initial access due to the large JS file, please wait patiently (5s or so)
in the previous article, we briefly introduced some simple practices of the Docker. Next, we'll talk about similar content in this article, but the services deployed with
Why serve something port mapping.
When you start the container, if you do not configure port mappings between the host machine and the virtual machine, the external program cannot access the virtual machine because there is no port.
What is the directive for port mapping.
Docker command: Docker run-p ip:hostPort:containerPort Redis
Use the-p parameter to map the host's port to the virtual machine.IP rep
In the traditional model, the development team completes the software development in the development environment, does the unit test itself, passes the test, ᨀ to the Code version Management library. Operation of the application deployment to the test environment, QA testing, no problem, notify the deployment of the release to the production environment. The above process involves at least three environments: development, testing, and production. The reality is that the development of self-test
Event object-compatible Processing
1/* 2 * function: event object compatibility 3 * parameter: indicates the event object E4 */5 function getevent (e) {6 7 // If e exists, return directly; otherwise, return window. event8 return E | window. event; 9}
Get the target of the event-compatible Processing
1/* 2 3 * function: Get the target 4 5 * parameter corresponding to the event: the event object E 6 7 */8 9 function gettargetbyevent () of the regular Browser () {10 11 // If e.tar get exists, retur
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.
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
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.