标签:setting spec bash bubuko tar color bsp docker 信息
查看容器的配置信息
# docker inspect dc4e2ff3eb58
查看容器的网络信息
# docker inspect -f {{.NetworkSettings}} node4
[root@localhost ~]# docker inspect -f {{.NetworkSettings}} dc4e2ff3eb58 {{ ca0148c227fb8637d33ed84b330562e8a684e7b4f58707d23191fb00febbc81d false 0 map[1521/tcp:[{0.0.0.0 1521}]] /var/run/docker/netns/ca0148c227fb [] []} {c9e5b72dd6eeef1fe0997bd97144fd338aa38ce0ece39c225a9846a64246ebd5 172.17.0.1 0 172.17.0.4 16 02:42:ac:11:00:04} map[bridge:0xc420398cc0]}
容器的打包
# docker export -o centos-`date +%Y%m%d`.tar ab48db8d2967
容器的重命名
# docker rename 56e5cfe8f8a8 node2
[root@localhost ~]# docker ps -a 56e5cfe8f8a8 centos "/bin/bash" 4 days ago Up 8 minutes node4 [root@localhost ~]# [root@localhost ~]# docker rename 56e5cfe8f8a8 node2 [root@localhost ~]# [root@localhost ~]# docker ps -a 56e5cfe8f8a8 centos "/bin/bash" 4 days ago Up 9 minutes node2
查看容器的文件变更
# docker diff 56e5cfe8f8a8
标签:setting spec bash bubuko tar color bsp docker 信息
原文地址:https://www.cnblogs.com/djlsunshine/p/10281686.html