docker run时报错Resource temporarily unavailable

docker run 时报错Resource temporarily unavailable,oci runtime create failed

检查docker 状态

$ systemd --version
systemd 229
$ uname -r
4.4.0-116-generic
$ systemctl status docker | grep Tasks
    Tasks: 469 (Limit: 512)

可以看到有Limit字样,说明Task限制了,设置为不限制即可,或改大一点

$ sudo systemctl set-property docker.service TasksMax=infinity

systemctl reload

$ systemctl daemon-reload

重启docker

$ systemctl restart docker

再次检查,

$ systemctl status docker | grep Tasks
    Tasks: 623

你可能感兴趣的:(Docker)