In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "docker installation centos commands", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "docker installation centos commands" it!
Install docker
Docker pull centos downloads the latest version of centos system
Docker images | grep centos to view centos images
Docker run-- name centos-portal-- network network01-- ip 172.20.0.10-p 8080pur808080-v / home/gdgxwl/:/mnt/software/-itd centos
(--name names the container centos-portal
-- network sets the network domain network01
-- ip settings container ip 172.20.0.10
-p map container port 8080 to host 8080
-v Mount / home/gdgxwl/ to container / mnt/software/
-itd runs the container in the background and returns the container ID;,-i: run the container in interactive mode, usually used with-t; reassign the container to a pseudo-input terminal, usually used with-I
(when you run centos, the exit status will appear when you check the running status of the container. You need to add the-itd parameter.)
Centos image name)
Docker ps-a view all containers, including those that exit or stop
Docker exec-it centos-portal / bin/bash enters the centos-portal container, and bash starts an interactive mode
At this point, I believe you have a deeper understanding of "docker's command to install centos". 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.
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.