In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Docker container commit, abbreviated as docker commit
Description: create a new from a container's changes
Docker image build abbreviated docker build
Explain build an image from a dockerfile
Docker image ls
Running centos container for docker run-it centos interaction
After entering the container, do some operations. This container does not have vim. Install vim.
Exit exit Container
Docker container ls-a check the container with an exit
Docker commit xenodochial_ritchie xiaopeng163/centos-vim
Created a new docker image
Docker image ls, check.
Docker history 1e1148e4cc2c
It is not recommended to produce image in this way. It is possible to put unsafe things into image. I don't know how this image came into being.
It is recommended to create an image through dockerfile
Docker image ls
Docker image rm af90dc083b9a deletes the image you just created
Mkdir docker-centod-vim creates a directory
Cd docker-centos-vim
Vim Dockerfile
FORM centos
RUN yum install-y vim
Docker build-t xiaopeng163/centos-vim-new. (dot is the current directory build)
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.