标签:
docker rename old容器名 new容器名
[root@ylchou ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
43d08f83bf55 centos66-bash:latest "/bin/bash -c ‘while 29 minutes ago Up 6 minutes hello_world2
[root@ylchou ~]# docker rename hello_world2 hi_world
[root@aleiye ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
43d08f83bf55 centos66-bash:latest "/bin/bash -c ‘while 29 minutes ago Up 6 minutes hi_world
标签:
原文地址:http://my.oschina.net/ylchou/blog/523794