Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Some basic commands of docker

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Log in to the docker container

Docker exec-it 582be8927539 / bin/bash

Kill all containers in running statu

Docker kill $(docker ps-Q)

Delete all containers that have been stopped

Docker rm $(docker ps-a-Q)

Delete all mirrors in\ 'untagged/dangling\' () statu

Docker rmi $(docker images-Q-f dangling=true)

Delete all mirrors:

Docker rmi $(docker images-Q)

Save the modified docker image

Docker commit 582be8927539 mysql/mysql8:v1.0

Package an image

Docker tag zohar/testlink:latest mike/testlink:v1.0

Compress the mirror mike/testlink into a mike.tar file

Docker save-o / mnt/mike.tar mike/testlink

Long pass compressed image to images

Docker load-I / mnt/mike.tar

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report