# Reinstall the Agent in docker and adding tokens make the container non functional

**URL:** <https://community.netdata.cloud/t/reinstall-the-agent-in-docker-and-adding-tokens-make-the-container-non-functional/2580>\
**Category:** Help\
**Tags:** agent\
**Created:** [February 17, 2022, 6:32pm UTC](https://community.netdata.cloud/t/reinstall-the-agent-in-docker-and-adding-tokens-make-the-container-non-functional/2580 "2022-02-17T18:32:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tasos\_Katsoulas](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/tasos_katsoulas/32/1344_2.png) [@Tasos\_Katsoulas](https://community.netdata.cloud/u/Tasos_Katsoulas)\
**Post date:** [February 17, 2022, 6:32pm UTC](https://community.netdata.cloud/t/reinstall-the-agent-in-docker-and-adding-tokens-make-the-container-non-functional/2580/1 "2022-02-17T18:32:15Z")

</div>

This is an issue we received from a user in our cloud chat.

## Problem/Question

I had Netdata running before on an older version in docker-compose and completely removed the volumes, purged the image, and started the installation from scratch.

When I am trying to run the instruction from the Cloud to install Netdata and claim the node, I receive these error logs

```auto
When trying to add a new node with the given docker-compose code it exits with the following messages:
netdata | ls: /var/run/balena.sock: No such file or directory
netdata | ls: /var/run/docker.sock: No such file or directory
netdata | Unable to communicate with Netdata daemon, querying config from disk instead.
netdata | Unable to communicate with Netdata daemon, querying config from disk instead.
netdata | netdata.public.unique.id is not readable. Please make sure you have rights to read it (Filename: /var/lib/netdata/registry/netdata.public.unique.id).
netdata exited with code 18

```

and the output of a docker ps is:

```auto
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
756XXXX099 netdata/netdata "/usr/sbin/run.sh" 48 minutes ago Restarting (18) 1 second ago
netdata

```

## What I expected to happen

Netdata successfully installed via Docker run command ( from Netdata Cloud) and the node to be claimed in my space.

---

<div class="post-metadata">

**Author:** ![ASAMedia](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/asamedia/32/1560_2.png) [@ASAMedia](https://community.netdata.cloud/u/ASAMedia)\
**Post date:** [February 19, 2022, 2:45pm UTC](https://community.netdata.cloud/t/reinstall-the-agent-in-docker-and-adding-tokens-make-the-container-non-functional/2580/2 "2022-02-19T14:45:19Z")

</div>

Hi,  
I found a working solution to this problem on [github](https://github.com/netdata/netdata/issues/11933).  
It seams like the problem is occuring only with old docker versions.  
If you dont want to update your docker version, [follow the instruction near the end of the discussion](https://github.com/netdata/netdata/issues/11933#issuecomment-1044488370) I linked aboth.
