Docker container keeps restarting


I’m trying to run a storagenode on my CentOS8 system but docker container keeps restarting about every 10 seconds.

[chewkok@storj ~]$ sudo docker ps -a
CONTAINER ID        IMAGE                          COMMAND             CREATED             STATUS                   PORTS                                                  NAMES
0c7a248d0ef6        storjlabs/storagenode:latest   "/entrypoint"       58 minutes ago      Up 4 seconds   >14002/tcp,>28967/tcp   storagenode
bdc7c61655c9        hello-world                    "/hello"            9 hours ago         Exited (0) 9 hours ago                                                          gifted_colden

My docker logs:

  2020-10-10T21:18:25.179Z        INFO    Configuration loaded    {"Location": "/app/config/config.yaml"}
    2020-10-10T21:18:25.193Z        INFO    Operator email  {"Address": ""}
    2020-10-10T21:18:25.193Z        INFO    Operator wallet {"Address": "0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
    2020-10-10T21:18:30.301Z        INFO    Telemetry enabled
    2020-10-10T21:18:30.307Z        INFO    db.migration    Database Version        {"version": 45}
    2020-10-10T21:18:35.981Z        ERROR   trust   Failed to fetch URLs from source        {"source": "", "error": "HTTP source: Get \"\": dial tcp: lookup on read udp> read: no route to host", "errorVerbose": "HTTP source: Get \"\": dial tcp: lookup on read udp> read: no route to host\n\*HTTPSource).FetchEntries:63\n\*List).fetchEntries:90\n\*List).FetchURLs:49\n\*Pool).fetchURLs:240\n\*Pool).Refresh:177\n\*Peer).Run:736\n\tmain.cmdRun:204\n\\n\\n\*Command).execute:840\n\*Command).ExecuteC:945\n\*Command).Execute:885\n\\n\\n\tmain.main:330\n\truntime.main:204"}
    Error: trust: failed to fetch from source "": HTTP source: Get "": dial tcp: lookup on read udp> read: no route to host

My firewall:

[chewkok@storj ~]$ sudo firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: eno1
  services: cockpit dhcpv6-client ssh
  ports: 14002/tcp 28967/tcp
  masquerade: no
  rich rules:


[chewkok@storj ~]$ cat /etc/resolv.conf
# Generated by NetworkManager

Any ideas?

Hello @chewkok,
Welcome to the forum!


Thank you for your reply.

I checked those posts you mentioned and added my DNS and firewall configuration on my post.

Your firewall still blocking the docker traffic.

this one is missed in your updated post.
Just make sure that your docker uses that subnet

Thank you very much!

1 Like