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.co
Docker Learning Tutorial Notes integration (complete)This article is mainly to organize the Dockerone organization translation Flux7 Docker Introductory tutorial, through Markdown Records, convenient offline learning. The original address, http://dockone.io/article/101.Some of the links may be redirected to foreign sites, if there is no plugin or open a VPN friend, you can try to modify the Hosts file, how
Docker. Upgrade your kernel to 3.8.0.Docker:relocation error:docker:symbol Dm_task_get_info_with_deferred_remove, version Base not Definedin file libdevmapper.so.1.02 with link Time reference[1]+ Exit 127 docker-d====================================================================workaround : Install the necessary plugins Yumupgrade device-mapper-libsExecute com
as KVM). Docker has made a substantial and innovative approach to this issue.1.3 Docker's Hello WorldTake Fedora 20 as the host for example and install Docker-io directly:$ sudo yum-y install Docker-ioLaunch Docker backend Daemon
are confused and not strictly differentiated. In fact, the repository registration server often stores multiple repositories, each of which contains multiple images, each of which has different tags ).
A repository can be either Public or Private.
The largest public repository is Docker Hub, which stores a large number of images for users to download. As the default docker repository, the download speed
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
. more Simple Management
With Docker, you can replace a lot of previous updates with just a little bit of modification. All modifications are distributed and updated incrementally, enabling automation and efficient management. Compare traditional virtual machine summaries
features
Container
Virtual Machines
Start
Second level
Minutes is
Hard disk use
is generally MB
typically GB
to save the submitted images to the mounted host directory. It's easier to use, and -v add more when you bind multiple directories -v .-v /tmp/docker:/tmp/dockerThere is also a connection between two container available --link , see the Advanced section or official documentation.Here is an example:# docker run --name nginx_test > -v /tmp/docker:/usr/share/nginx
create Docker containers using remote APIs
Docker containers are created with Docker images
Docker_host: The host that really runs the container
Containers: A container, one or a set of applications that run independently
Images: Mirroring, template for creating Docker containers
Registry: Mirrored Ware
Docker Swarm getting started, dockerswarm
Swarm was an independent project before Docker 1.12. After Docker 1.12 was released, the project was merged into Docker and became a sub-command of Docker. Currently, Swarm is the only tool provided by the
Docker Swarm getting started, dockerswarm
Swarm was an independent project before Docker 1.12. After Docker 1.12 was released, the project was merged into Docker and became a sub-command of Docker. Currently, Swarm is the only tool provided by the
How to use Windows version Docker and use Docker to run Spring Cloud project in IntelliJ Idea # #: Prerequisite Preparation1.1 First please make sure your computer is WINDOWS10 Pro or Enterprise Edition, only these two versions are only available with Hyper-V#2: IntroductionIn the past, if we wanted to use Docker on Windows, we used virual box to create virtual m
user sessions and tasks, including creating a warehouse and sending emails.
Sidekiq: a built-in Rails framework that subscribes to and executes redis tasks.
3. GitLab installation and deployment 3.1. Official support
RPM package containing everything: https://about.gitlab.com/downloads/ (officially recommended)I personally don't recommend it, because the RPM package capacity is too large, more than 200 M, suitable for Linux beginners, not tried
Manual installation: https://gitlab.com/gitlab
Docker Quick Start-docker image creation I. dockerfile Script 1. Introduction to dockerfile script
Dockerfile is a text file that contains an instruction. Each instruction creates a layer. Therefore, the content of each instruction describes how to build the layer.Dockerfile example:
# Dockerfile format # This dockerfile uses the Ubuntu image # version 2-Edition 1 # Author: docker_user # Command Format: ins
operating systems or even windows. Here I use centos7.3 for installation. Docker has the following requirements on the operating system:
-Kernel version later than 3.10: You can view it through uname-r.
-64-bit system: You can view it through uname-I.Install yum
After configuring the yum source, you can directly use the yum command for installation:
yum install docker
you decide if you want to add nginx to the front end)3.1 Installing and configuring NginxAs you can see from the above procedure, unless the firewall is restricted, any host can create an account and want to push the image, it is safer to join the login authentication mechanism in the outer layer.最好安装1.4.x版本,不然下面的有些配置可能会不兼容# yum install nginx创建两个登录用户# htpasswd -c /etc/nginx/docker-registry.htpasswd seanNew
cluster information. The following is the swarm chart:
How to use swarm
There are 3 machines:sclu083:10.13.181.83sclu084:10.13.181.84atsg124:10.32.105.124Use the three machines to create a docker cluster, where sclu083 also acts as the Swarm Manager management cluster. Swarm installation
The simplest way to install swarm is to use the swarm image provided by the Docke
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
is still to understand, such as how to create their own image, how to use the technology of. NET Core with Docker.Then install the Docker platform from the very basics.In fact, it is relatively simple, the official description, there is the advantage of the installation guide is not to knock the command line, copy and paste the command line is enough.Keep a record of the brief steps, and later forget it or
process of the container. When the process ends, the container stops completely.
# Run the "Echo" command in the container, output "Hello word" $ docker run image_name echo "Hello word" # interactively enter the container $ docker run-I-t image_name/bin/bash # install a new program in the container $ docker run image
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.