Home >Operation and Maintenance >Docker >How to rename docker image

How to rename docker image

王林
王林Original
2020-03-23 17:50:297795browse

How to rename docker image

Mirror

Rename:

docker tag IMAGEID(镜像id) REPOSITORY:TAG(仓库:标签)

How to rename docker image

Recommended related tutorials: docker tutorial

Delete:

docker rmi IMAGEID  或者 docker rmi REPOSITORY:TAG

Container

Rename:

docker 原容器名 新容器名

Delete:

docker rm CONTAINERID

Extended commands:

$ docker ps // 查看所有正在运行容器 
$ docker stop containerId // containerId 是容器的ID 
$ docker ps -a // 查看所有容器 $ docker ps -a -q // 查看所有容器ID 
$ docker stop $(docker ps -a -q) //  stop停止所有容器 
$ docker rm $(docker ps -a -q) //   remove删除所有容器

The above is the detailed content of How to rename docker image. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn