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

How to install Docker

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install Docker. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

1. preface

Docker means "porter" in English. In the programmer's world, Docker carries containers, which contain any type of App. Developers can turn App into a standardized, portable and self-managed component through Docker, which can be developed, debugged and run in any mainstream system.

2. premise

(1)Due to the limitations of the current docker, it can only be used on 64-bit servers.

(2)Due to bugs in Linux containers, docker works best on Linux kernel 3.8 and needs to support AUFS.

3. Upgrade kernel (kernel3.8 omits this step), you can check the system kernel version by uname -a # upgrade kernelsudo apt-get updatesudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring# rebootsudo reboot4. Activate AUFS file system support #Check if AUFS is installed sudo apt-get updatesudo apt-get install linux-image-extra-`uname -r`5. Install Docker#Add Docker library keys sudo apt-key adv --keyserver keyserver.ubuntu.com--recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9#Add Docker library to apt source list, update and install lxc-docker package sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\> /etc/apt/sources.list.d/docker.list"sudo apt-get updatesudo apt-get install lxc-docker6. Check if Docker is installed successfully sudo docker version

7. Add users to docker user group to get execute privileges

When executing Docker, you have to enter sudo every time, which is very troublesome. You can add users to the docker user group to obtain execution permissions.

#Add current user www to docker user group sudo gpasswd -a www docker#Restart Dockersudo service docker restart#Restart system to make it effective sudo reboot Thank you for reading! About "how to install Docker " this article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

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