In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to run docker in the ubuntu container, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
How does it work in a docker ubuntu container? When using Centos system, some software is not easy to compile and install, but it becomes relatively easy in Ubuntu, so we can use docker to run Ubuntu system to make up for the shortcomings and shortcomings of Centos.
1. Install Ubuntu system commands:
Docker pull ubuntu
This is an extremely compact system, not even the most basic wget command; so first you have to apt-get update upgrade the system and install the apt-get install wget command
2. Run the command to enter the Ubuntu system:
Docker run-ti ubuntu bash
3. Correct way to exit the system:
Press ctrl+p; first and then press ctrl+q
You can't use exit or ctrl+d to exit, so the whole system exits!
4. Share the host directory to the Ubuntu system:
Docker run-it-v / AAA:/BBB ubuntu bash
In this way, the AAA folder in the root directory of the host is mapped to the container Ubuntu, and the two can be shared.
5. Log in to the ubuntu image system in docker:
Docker run-ti ubuntu / bin/bash
# 6866 is the first four digits of IMAGE ID-you can tell which image it is.
6. Exit and then enter ubuntu
1. First use docker ps-a to find the corresponding number of the CONTAINER ID (for example: 0a3309a3b29e)
2. Enter the docker attach 0a3309a3b29e of the system (if there is no response at this time, ctrl+c will enter the ubuntu system)
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.