docker login fails on a server with no X11 installed

Looks like this is because it defaults to use the secretservice executable which seems to have some sort of X11 dependency for some reason. If you install and configure pass docker will use that instead which seems to solve the problem. In a nutshell (from https://github.com/docker/compose/issues/6023) sudo apt install gnupg2 pass gpg2 –full-generate-key This generates … Read more

Docker Registry 2.0 – how to delete unused images?

Deletion of images (you can keep 10 last versions, like I do in my CI) is done in three steps: Enable image deletion by setting environment variable REGISTRY_STORAGE_DELETE_ENABLED: “true” and passing it to docker-registry Run below script (it will delete all images and tags but keep last 10 versions) registry.py -l user:pass -r https://example.com:5000 –delete … Read more

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: no such host

I had similar issue on Ubuntu 16.04 and manage to solve it by adding more nameservers You can try too. Open config file sudo nano /etc/resolv.conf and add the following under existing nameservers nameserver 8.8.8.8 nameserver 8.8.4.4 run following commands to restart daemon and docker service sudo systemctl daemon-reload sudo systemctl restart docker Now try … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)