Docker Tips

Posted by 赵化冰 on Friday, February 9, 2018

Allow none-root users

sudo groupadd docker
sudo gpasswd -a $USER docker
newgrp docker

Solve “no space left on device”

ubuntu

sudo vi /etc/docker/daemon.json
{
        "storage-driver": "devicemapper",
        "storage-opts": [
                "dm.basesize=40G"
        ]
}

Mac

Docker -> settings -> Resources -> Disk Image Size