docker container rename Description Rename a container Usage docker container rename CONTAINER NEW_NAME Aliases docker rename Description The docker rename command renames a container. Examples $ docker rename my_container my_new_container Table of contents ...
Usage: docker [OPTIONS] COMMAND Common Commands: Management Commands: 管理命令 Swarm Commands: Global Options: 全局选项: root@kali:~# docker Usage: docker [OPTIONS] COMMAND A self-sufficient runtime for containers Common Commands: run Create and run a new container from an image 从镜像创建并...
renameRename a container 重命名一个容器 restartRestart one or more containers 重新启动一个或多个容器 rmRemove one or more containers 移除一个或多个容器 runRun a command in a new container 在新容器中运行命令 startStart one or more stopped containers ...
cp Copy files/folders between a container and the local filesystem create Create a new container diff Inspect changes on a container's filesystem events Get real time events from the server exec Run a command in a running container export Export a container's filesystem as a tar archive hist...
docker rename my_old_container my_new_container 执行成功后,容器的名称将变为 my_new_container。你可以通过以下命令确认: docker ps-a 2、使用容器 ID 重命名 如果你不知道容器的名称,但知道其 ID,可以使用容器的 ID 来重命名。例如: docker rename123abc456defmy_new_container ...
rename Rename a container restart Restart a container rm Remove one or more containers rmi Remove one or more images run Run a command in a new container save Save one or more images to a tar archive (streamed to STDOUT by default) ...
15. docker container rename# 重命名容器。 16. docker container restart# 重新启动一个或多个容器。 17. docker containerrm# 移除一个或多个容器。 18. docker container run# 在新容器中运行命令。 19. docker container start# 启动一个或多个已停止的容器。
rename Rename a container restart Restart one or more containers rm Remove one or more containers rmi Remove one or more images run Run a command in a new container save Save one or more images to a tar archive (streamed to STDOUT by default) ...
rename Rename a container 重命名容器 restart Restart one or more containers 重启一个或多个容器 rm Remove one or more containers 删除一个或多个容器 rmi Remove one or more images 删除一个或多个镜像 save Save one or more images to a tar archive (streamed to STDOUT by default) ...