Docker container keeps restarting

Hello,

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             127.0.0.1:14002->14002/tcp, 0.0.0.0:28967->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": "xxxxxxxxxx@gmail.com"}
    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": "https://tardigrade.io/trusted-satellites", "error": "HTTP source: Get \"https://tardigrade.io/trusted-satellites\": dial tcp: lookup tardigrade.io on 8.8.4.4:53: read udp 172.17.0.2:46397->8.8.4.4:53: read: no route to host", "errorVerbose": "HTTP source: Get \"https://tardigrade.io/trusted-satellites\": dial tcp: lookup tardigrade.io on 8.8.4.4:53: read udp 172.17.0.2:46397->8.8.4.4:53: read: no route to host\n\tstorj.io/storj/storagenode/trust.(*HTTPSource).FetchEntries:63\n\tstorj.io/storj/storagenode/trust.(*List).fetchEntries:90\n\tstorj.io/storj/storagenode/trust.(*List).FetchURLs:49\n\tstorj.io/storj/storagenode/trust.(*Pool).fetchURLs:240\n\tstorj.io/storj/storagenode/trust.(*Pool).Refresh:177\n\tstorj.io/storj/storagenode.(*Peer).Run:736\n\tmain.cmdRun:204\n\tstorj.io/private/process.cleanup.func1.4:353\n\tstorj.io/private/process.cleanup.func1:371\n\tgithub.com/spf13/cobra.(*Command).execute:840\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:945\n\tgithub.com/spf13/cobra.(*Command).Execute:885\n\tstorj.io/private/process.ExecWithCustomConfig:88\n\tstorj.io/private/process.ExecCustomDebug:70\n\tmain.main:330\n\truntime.main:204"}
    Error: trust: failed to fetch from source "https://tardigrade.io/trusted-satellites": HTTP source: Get "https://tardigrade.io/trusted-satellites": dial tcp: lookup tardigrade.io on 8.8.4.4:53: read udp 172.17.0.2:46397->8.8.4.4:53: read: no route to host

My firewall:

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

My DNS:

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

Any ideas?

Hello @chewkok,
Welcome to the forum!


and

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