Docker to build a Java Web environment this weekend, you'll experience some pretty hot Docker technology and simply record your own learning notes. What does >docker do?Docker is an advanced container engine based on the Linux container (Lxc-linux container), developed based on the Go language,The source code is hosted
Transferred from: http://www.oschina.net/translate/docker-lightweight-linux-containers-consistent-development-and-deploymentEnglish Original: Docker:lightweight Linux Containers for consistent development and Deployment
Use Docker containers-lightweight and flexible VM-like to take over "dependency hell". Learn how Docker is based on LXC technolog
One: Dockerfile, put Dockerfile and MyFolder in a directory:From httpd:2.4COPY. /myfolder/ /usr/local/apache2/htdocs//usr/local/apache2/-R Daemon:daemon Htdocs 755 htdocsTwo: Generate Image:Docker build-t ImageName. (Note the following points)Three: httpd Open is 80 port. Execution Container:Docker Run-p 9009:80 ImageNameFour: You can view the contents of the image :Docker PS | grep "9009" Found container ID is XxxidDocker exec-it Xxxid SHThen
Prerequisites for Linux installation Docker:Must be a 64-bit CPU-architected computer, Docker currently does not support 32-bit CPUs, running Linux3.8 or later kernel, CentOS kernel must be no less than 3.10; the kernel has to support an appropriate storage driver, which can be device Manager, Aufs, VFS, Btrfs, and one of the default driver device mapper; The kernel must support and open the Cgroup and namespace namespace features.
Check Prerequisites
Step 1, Export the port in your container (Docker-machine or Boot2docker)First of all, make sure that you publish the image of the port already run. Let's say you're the image that was build up through Dockerfile. Note Add the following paragraph to the image:Expose 80Let's say you need to make the other port available, just change the 80.Expose this command means that Docker image publishes a port.Then you
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 Introduction
Docker is an open source application container engine that allows developers to package their apps and dependencies into a portable container, and then publish it to any popular Linux machine or virtualization. Containers are completely using the sandbox mechanism, and there will be no interface between each other.
Docker official w
Docker engine when people talk about Docker, generally speaking, everyone is talking aboutDocker EngineSuch as:It is a client-server application.The Docker Engine consists of three parts: the Docker process (Docker Daemon) REST API: Specifies the interface CLI that interacts
1.docker software comes with Docker Rest API, without installation; Need to set the next Docker configuration file Vi/etc/default/docker.io or Vi/etc/default/docker #追加下面一行DOCKER_OPTS = "-H tcp://0.0.0.0:5555-h unix://var/run/ Docker.sock " Restart Docker, service
Basic installation steps Ubuntu Docker installationDocker supports the following Ubuntu versions:
Ubuntu precise 12.04 (LTS)
Ubuntu trusty 14.04 (LTS)
Ubuntu Wily 15.10
Other updated versions ...
Pre-conditionsDocker requires an Ubuntu system with a kernel version higher than 3.10 to check the prerequisites on this page to verify that your Ubuntu version supports Docker.View your current kernel version with the
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
Docker Practical Guide: containerized a python web AppProvide Zstack communityObjectiveIt is a common and scary thing that Web applications can be exploited by attackers to seize the entire host's permissions at any time. For greater security, there is a need to isolate the different applications (especially if they belong to different users), but the implementation of this isolation has always been a challenge. So far, there have been many implementa
4th. Using Docker images and warehousesReview:Review how to use Docker run to create the most basic container$sudo Docker run-i-T--name another_container_mum Ubuntu/bin/bash[Email protected]:/#This command launches a new container called Another_container_mum, which is based on the Ubuntu mirrorLike and will start the bash Shell-----------------------------------
What does >docker do?Docker is an advanced container engine based on the Linux container (Lxc-linux container), developed based on the Go language,The source code is hosted on Github and complies with the APACHE2.0 protocol open source. The goal of Docker is to implement a lightweight operating system virtualization solution.Learn
1. Get the ID of the most recently run container
This is an operation that we often use, as the official example allows you to do this (environment Ubuntu):
$ id=$ (Docker run Ubuntu echo Hello World)
Hello World
$ docker commit $ID HelloWorld
fd08a884dc79
This is useful when writing scripts, such as you want to bulk get IDs in a script, and then do it further. But this way requires that
during the first write, that is, when the resource is modified. This sharing of resources can significantly reduce the consumption of unmodified resource replication, but will also increase the cost of small portions when making resource modifications.In a classic example, Knoppix, a Linux distribution for Linux demos, CD-ROM tutorials, and commercial product demos, is to put a CD-ROM or DVD and one that exists in a writable device (eg, USB flash drive) on the file system called Knoppix.img tog
write operation, which is when the resource is modified. This resource-sharing approach can significantly reduce the consumption of unmodified resource replication, but will also add and subtract a small amount of overhead when resource modifications are made.With a classic example, Knoppix, a Linux distribution for Linux demos, CD-ROM teaching, and commercial product demonstrations, is to put a CD-ROM or DVD and a presence in a writable device (eg, U disk) on the file system called Knoppix.img
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
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.