In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "how to install Docker in Linux", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to install Docker in Linux" can help you solve your doubts.
As a software containerization platform, Docker allows developers to build applications, package it into a container with its dependent environment, and then easily publish and apply it to any platform.
Imgdocker install wget-qO- https://get.docker.com/ | sh gets and runs the docker installation script, and executes the script as pipe
[note] it is recommended to use non-root users. If you are a non-root user, you need to execute the following command and add the appropriate users.
Visudo found this line of root ALL= (ALL) ALL Add xxx ALL= (ALL) ALL below him (xxx here is your user name) ps: here you can sudoers add any of the following four lines youuser ALL= (ALL) ALL%youuser ALL= (ALL) ALLyouuser ALL= (ALL) NOPASSWD: ALL%youuser ALL= (ALL) NOPASSWD: first line of ALL: allows the user youuser to execute the sudo command (password is required). The second line: allow users in the user group youuser to execute sudo commands (password is required). Line 3: allows the user youuser to execute the sudo command without entering a password. Line 4: allow users in the user group youuser to execute the sudo command without entering the password [root@localhost ~] # usermod-aG docker npoulton # to add the user to the group [root@localhost ~] # cat / etc/group | grep docker # to see if the docker:x:994:npoulton [npoulton@localhost ~] $docker-- version # View version Docker version 19.03.5 Build 633a0ea [npoulton@localhost ~] $docker system info # View docker system information Client:Debug Mode: falseServer:ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?errors pretty printing info # here docker does not start to view the startup status of the docker service systemctl status docker starts the docker service systemctl start docker stops the docker service: systemctl stop docker restarts the docker service: systemctl restart docker is added to boot (in production environments it is generally necessary to run the Docker service automatically when the system starts) systemctl enable docker Docker # docker command reads here This article "how to install Docker in Linux" has been introduced, and if you want to master the knowledge of this article, you still need to practice and use it. If you want to know more about the article, please pay attention to the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.