docker-docker allocate memory问题

docker构建竟像式报错:docker allocate memory

清除 buff/cache
sync && echo 3 > /proc/sys/vm/drop_caches

# echo 3 > /proc/sys/vm/drop_caches

查看内存buff/cache,已经释放

[root@docker226 ark]# free -mh
              total        used        free      shared  buff/cache   available
Mem:            15G        3.3G         11G        120M        1.1G         11G
Swap:          7.9G        1.6M        7.9G

可以正常打包docker镜像

echo N>/proc/sys/vm/drop_caches清理缓存 https://www.jianshu.com/p/016f7cf0380d

你可能感兴趣的:(docker,问题)