Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method of quick installation of Docker

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

The main content of this article is to explain "what is the method of quick installation of Docker". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what is the method of Docker quick installation"?

What is Docker?

Docker is an open source application container engine. For authoritative explanations, please refer to the official Docker documentation or the official Docker China documentation.

Install DockerUbuntu 14.04swap 16.04

Install the necessary system tools

Sudo apt-get updatesudo apt-get install-y apt-transport-https ca-certificates curl software-properties-common

Install GPG certificate

Curl-fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add-

Write to software source

Sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release-cs) stable"

Update and install Docker-CE

Sudo apt-get updatesudo apt-get install-y docker-ce

CentOS 7

Install the necessary system tools

Sudo yum install-y yum-utils device-mapper-persistent-data lvm2

Add software source information

Sudo yum-config-manager-- add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

Update and install Docker-CE

Sudo yum makecache fastsudo yum install-y docker-ce

Enable the Docker service

Sudo systemctl enable dockersudo systemctl start docker

Install and verify docker versionDocker Image Accelerator

When you download and install Docker Version at least 1.10, it is recommended to configure it directly through daemon config.

Modify the file / etc/docker/daemon.json to configure (create a new file if not available).

Please refer to the official document Docker China official Image acceleration, Configure the Docker daemon.

Or Aliyun blog document Docker Image Accelerator.

China's official image acceleration:

{"registry-mirrors": ["https://registry.docker-cn.com"]}"

Aliyun accelerates:

{"registry-mirrors": ["https://0ardnxoa.mirror.aliyuncs.com"]} restart Docker

Ubuntu 14.04

Sudo / etc/init.d/docker restart

CentOS 7

Sudo systemctl restart docker

Check the mirror address

View through the docker info command

Docker info runs the interactive container docker run-it ubuntu to search for Docker images

Search through Aliyun's developer platform. [recommended]

Search from the command line

Docker search ubuntu

Search through Docker's official website.

Download image docker pull centos, run Docker output hello worlddocker run centos / bin/echo "hello world" Docker to view log docker logs stop container docker ps docker stop delete all containers docker rm $(docker ps-qa) view Docker object information docker inspect NAME | ID so far, I believe you have a better understanding of "what is the quick installation of Docker", you might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report