docker search sameersbn
Error response from daemon: Get https://index.docker.io/v1/search?q=sameersbn&n=25: dial tcp: lookup index.docker.io on 192.168.65.1:53: read udp 192.168.65.2:45190->192.168.65.1:53: i/o timeout
➜ ~ docker pull sameersbn
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
➜ ~
二、处理
➜ ~ dig @114.114.114.114 registry-1.docker.io
选择可用的ip registry-1.docker.io
格式:54.236.131.166 registry-1.docker.io
docker search sameersbn
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-OBBpyuYn-1602336965335)(C:\Users\KingKang\AppData\Roaming\Typora\typora-user-images\image-20201010212639188.png)]
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
或执行
sed -i 's#GRUB_CMDLINE_LINUX=""#GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"#g' /etc/default/grub
sudo update-grub 或 sudo grub-mkconfig -o /boot/grub/grub.cfg
2.3、重启系统
sudo reboot
df -h
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-h0vIADS5-1602336965337)(C:\Users\KingKang\AppData\Roaming\Typora\typora-user-images\image-20201010213034010.png)]
发现/dev/mapper/ubuntu–vg-ubuntu–lv内存满了
sudo vgdisplay
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-fzxy0jgu-1602336965340)(C:\Users\KingKang\AppData\Roaming\Typora\typora-user-images\image-20201010213114007.png)]
Alloc PE / Size 1024 / 4.00 GiB
Free PE / Size 3839 / <15.00 GiB
第一个是 /dev/mapper/ubuntu–vg-ubuntu–lv 这个磁盘
第二个是 这个磁盘可以扩容的大小
sudo lvextend -L 10G /dev/mapper/ubuntu--vg-ubuntu--lv
扩容到10G(扩容5G)
3.重新计算磁盘大小
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
[root@www ~]# docker search tomcatError response from daemon: Get https://index.docker.io/v1/search?q=tomcat&n=25: di
vim /etc/resolv.conf
nameserver 114.114.114.114
nameserver 127.0.0.53
v.conf
###### 4.2 添加一行:
nameserver 114.114.114.114
nameserver 127.0.0.53
[^注意这只是暂时解决问题,后面的内容会被覆盖掉]: