Skip to content

Docker Issues

#1 Pull from repo failed

$ docker pull nexusrepo.domain.com:8082/project-a
Using default tag: latest
Trying to pull repository nexusrepo.domain.com:8082/project-a ... 
Get https://nexusrepo.domain.com:8082/v1/_ping: http: server gave HTTP response to HTTPS client

Solution

Add value to file /etc/docker/daemon.json

$ cat /etc/docker/daemon.json
{ "insecure-registries":["nexusrepo.domain.com:8082"] }

Issue: error initializing graphdriver: driver not supported

OS : CloudLinux 3.10.0-962.3.2.lve1.5.36.el7.x86_64
Dcoker:  Version 17.09.1-ce

Solution

# reason
$ cat /etc/docker/daemon.json
{"storage-driver": "overlay2"}
# fix
rm -f /etc/docker/daemon.json

#2 Docker logs to syslog drivers freezed

State: - host: LXC 5.15.131-1-pve - docker version 24.0.5 - rsyslog on host listen 514 port with local3 facility:

# cat /etc/rsyslog.d/docker.conf 
local3.*        /var/log/docker.log
# & stop
- containers configured to syslog drivers:
       logging:
        driver: "syslog"
        options:
          syslog-address: "udp://127.0.0.1:514"
          syslog-facility: "local3"
- Some changes have been made in file /var/log/docker.log

Problem: - Collecting logs from containers stopped after that - Restart rsyslogd - no success, Service work - Restart containers (not all compose file) - no success. - No logs by test:

docker run --log-driver syslog --log-opt syslog-facility=local3 --log-opt syslog-address=udp://127.0.0.1:514 alpine echo '999999'`