docker相关
关于映射文件夹
查看和移除docker映射文件夹
[root@iZ8vbajg9wo8iwynfb1lgeZ dc1]# docker volume ls
DRIVER VOLUME NAME
local d70d4c146eba60e8eb616b8d68f58f6254075a9f30d18ff7584ed424cc418667
local dc1_cheveretoconfig
local dc1_cheveretodata
local dc1_djangocmsapp
local dc1_djangocmsdata
[root@iZ8vbajg9wo8iwynfb1lgeZ dc1]# docker volume rm d70d4c146eba60e8eb616b8d68f58f6254075a9f30d18ff7584ed424cc418667
d70d4c146eba60e8eb616b8d68f58f6254075a9f30d18ff7584ed424cc418667
docker查询容器所有文件夹映射
docker inspect easyimage | grep Mounts -A 20
docker daemon文件生效
sudo systemctl daemon-reload
sudo systemctl restart docker
更新服务器时间-bash: ntpdate: 未找到命令
yum install ntpdate
ntpdate -u ntp.api.bz
221018
docker在pull镜像的时候经常出现头一天晚上怎么都不行,第二天一早忽然就可以了。
docker查看所有容器占用的内存
docker stats
获取帮助
docker stats --help
“`perl
获取容器ID
docker ps =<!–autointro–>