In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "the simple use of docker container". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the simple use of docker container".
1 View ID
View the ID:docker ps of the docker container
For example, ID is: 083bdf656f1b
2 enter the docker container
Enter the docker container syntax: docker exec-it / bin/bash
Enter the docker container for example: docker exec-it 083bdf656f1b / bin/bash
3 copy files
Copy files from physical machine to docker internal syntax: docker cp
< docketID号>:
Copy files from physical machine to docker for example: docker cp / opt/dm/dmnet 083bdf656f1b:/opt/dm/dmnet
Note: it needs to be executed on the physical machine.
Copy files from within docker to the physical machine syntax: docker cp
< docketID号>:
Copy files from within docker to physical machine for example: docker cp 083bdf656f1b:/opt/dm/dmnet / opt/dm/dmnet
Note: it needs to be executed on the physical machine.
4 considerations for docker
1. If you install the database in docker or build a cluster, it is recommended that all port numbers in the database section be preceded by a 3, for example, the default database instance port is 5236, and the database port in docker is changed to 35236. When the docker port is mapped, it maps 35236.
Thank you for your reading, the above is the content of "simple use of docker container", after the study of this article, I believe you have a deeper understanding of the simple use of docker container, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.