In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to use Docker native Shell". In daily operation, I believe many people have doubts about how to use Docker native Shell. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to use Docker native Shell". Next, please follow the editor to study!
I. nouns
Native Shell native terminal
Docker machine
Docker container
Images Mirror
II. Orders
1. Native Shell: you can use the docker-machine command to create, modify, delete and other operations on the docker machine
2. Docker machine: the docker machine created with the native Shell can be viewed in the native Shell with the docker-machine ls command
That is, you can use the docker-machine command when the native Shell is not connected to docker machine, but after the native Shell connects to docker machine, you must use the docker command. The connection method between native Shell and docker machine is as follows:
3. The connection between native Shell and docker machine:
① docker-machine env zx1 looks at the environment variables of the docker machine named zx1
② eval $("D:\ Program Files\ Docker Toolbox\ docker-machine.exe" env zx1) completes the connection between the native Shell and the docker machine, but the Terminal still shows the local user name and computer name
4. Native Shell can create docker machine for multiple environments.
5. View the image of the currently connected docker machine
Docker images
6. Docker machine can load multiple images
7. You can create multiple docker containers by using one image in docker machine
8. A docker container is essentially a container created after a certain image is loaded in docker machine, which is equivalent to a (Linux) operating system.
9. The commands in the docker container are similar to those in the Linux operating system
At this point, the study on "how to use Docker native Shell" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.