This series of articles will introduce Docker knowledge:
(1) Docker installation and basic usage
(2) Docker mirror
(3) Isolation of Docker containers-use Linux namespace isolate container's operating environment
(4) Isolation of Docker containers-use cgroups to limit the
What is Docker?Docker's English translation “搬运工” means that what he's carrying is what we always say 集装箱Container , Container is an app of any kind, and our developers can use Docker to turn the app into a label, 准化的 可移植的 自管理的 component, We can develop, debug and run in any major operating system.What is the difference between Docker and virtual machine?Conceptu
Tip1
Get the ID of the most recently run container this is an operation that we will often use, according to the official example, you can do this (environment Ubuntu):
This is useful when scripting, such as when you want to get IDs in bulk in a script, and then proceed further. But this approach requires you to assign a value to the ID, which is inconvenient if you are directly knocking at the command. At this point, you can change the way:
The Docker
Linux version: Ubuntu16.04
The first time you install Docker, it is possible to run the Docker command, such as
Docker PS
After restarting the system, the following error occurred after running Docker PS: Cannot connect to the Docker daemon. Is the
Docker is a new way to achieve a super lightweight virtual machine, in the implementation of the principle and application or VM has a huge difference, the professional name is the application container (application Container). (I personally prefer to call it a virtual machine)
1. Installation
1.1 Installing Docker on Ubuntu 14.04
Prerequisite Requirements:
Kernel version must be 3.10 or above
Follow t
Prerequisites
Using Docker recently is a lot more personal than a virtual machine. However, installing Docker under Linux and Windows will overwhelm a group of people that we don't want to see.
This article describes in detail the installation of Docker-ce and Nvidia-docker under Ubuntu, and how to use the domestic im
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.
Profile
Docker to give a
Profile
The biggest change in the Docker 1.12 version is the integration of Docker Swarm, which provides a engine model under Docker swarm, which is mainly about Docker swarm.
The Docker engine itself provides only container technology and does not solve container orchestr
1
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
1
1.2 Installing Dockersudo apt-get update
1
sudo apt-get install docker-ce
1
2 Installing PostgreSQLdocker pull postgres:9.4
1
3 Creating a containerDocker containers are only accessible by the local host by default, that is,
across multiple nodes # The shared host network namespace (equivalent to docker run -- Net = host) none # is equivalent to docker run -- Net = none driver_opts # v3.2 and later versions. The parameters passed to the driver depend on the driver attachable # used when the driver is overlay, if it is set to true, in addition to services, independent containers can also be attached to the network. If an indepe
Docker tips and Common commands and docker tipsInstall docker
Check whether the curl package is installed?which curl
If curl is not installed, update the apt source and install curl as follows:apt-get updateapt-get install curlapt-get updatewget -qO- https://get.docker.com/ | sh
Set the current user as the docker u
In the previous part, " Run the ASPDOTNETCOREMVC program on Docker-part4: Load Balancing ", We have several more complex steps on the Docker platform to achieve the load balance of the website program, configuration steps are more. If the actual site is less, the overall architecture is relatively simple case, this does not have much problem, if the application of more time, will be prone to error. At this
Docker is a LXC-based advanced container engine for PAAs vendors DotCloud open source, which is hosted on GitHub and is open source based on the go language development and compliance with the Apache 2.0 protocol. Docker provides a way to automate the deployment of software in a secure, repeatable environment, with the advent of a change in the way the cloud-based platform releases products. In order to bet
Previous article Docker (iv): Docker Compose of the Three Musketeers introduces Docker Compose, this article we'll look at Docker machine.About Docker MachineDocker Machine is one of the official Docker orchestration (Orchestratio
Third, Getting Started with Docker (the following operating environment is on the Cetos6.364bit system)1. Create a container#docker run-i-T Ubuntu/bin/bashThe-I flag guarantees that the STDIN in the container is open, although we are not attached to the container,the-t Flag tells Docker to assign a pseudo-TTY terminal to the container to be created . Appendix: Th
This article is in the following directory:
Windows follows Docker's basic requirements
Specific installation steps
Start using
Installing the remote Connection tool connecting Docker
Problems encountered during installation
Updates to Docker
The Jupyter in Docker
Common commands for using
parameter to specify when using Docker run.
Docker run-it-h Newcontainer--volumes-from Shanlei-nginx Ubuntu/bin/bash
Note: It is important to note that it works regardless of whether the Shanlei-nginx is running. As long as the container is connected to the volume, it will not be deleted.Data Volume container
If we have some continuously updated data that needs to be shared between containers, it's a go
http://segmentfault.com/a/1190000000751601This article only records the use of Docker commands in most situations, and if you want to know the details of each option, please refer to the official documentation, which is recorded only as a later memo.According to their own understanding, generally divided into the following types:
Container Life cycle Management-docker [run|start|stop|restart|kill|r
mike0405/flaskThe push refers to repository [docker.io/mike0405/flask]7ac180ee56ec: Pushed 7ac2d207ee3f: Pushed c0cb3173d025: Pushed d2e086cfb9ca: Pushed 7861eaf542d8: Pushed 6948ed269722: Pushed 4622c8e1bdc0: Pushed b33859b66bfd: Pushed 14fa4a9494bf: Pushed 0c3819952093: Pushed 05b0f7f2a817: Pushed latest: digest: sha256:bf314bbc4e3fa98f80cb964e750d58e1f47b361525fe780b1a3803eb5099e2ef size: 2619(5) from the in, you can see that step 4 of the upload has been successful.(6) Mirror search using t
I see this blog has a high click rate, but the tutorial is good and detailed, time is long, things have changed, the tutorial has become a useless tutorial.With the Docker update, the previous method of modifying the source has not been appliedToday, I installed the next docker18.02ce version, found that the tutorial is not used, so make it up againVim/etc/docker/daemon.json This JSON file does not exist, n
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.