# Restart node in docker after removing the container

**URL:** <https://forum.storj.io/t/restart-node-in-docker-after-removing-the-container/8792>\
**Category:** Node Operators\
**Created:** [August 27, 2020, 7:43pm UTC](https://forum.storj.io/t/restart-node-in-docker-after-removing-the-container/8792 "2020-08-27T19:43:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![frances](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/frances/32/1137_2.png) [@frances](https://forum.storj.io/u/frances)\
**Post date:** [August 27, 2020, 7:43pm UTC](https://forum.storj.io/t/restart-node-in-docker-after-removing-the-container/8792/1 "2020-08-27T19:43:43Z")

</div>

After a reboot of my Pi4 y notice the dashboard is “unable to connect” in [http://localhost:14002/](http://localhost:14002/)

So i figured the node is down and tried to restart it manually. After looking for instructions i ended removing the container  
docker stop -t 300 storagenode  
docker rm storagenode

just after hitting enter i had the doubt if removing the container is the same as killing the node. (i´m greenie in docker as you can see).

Afterwards, i found a thread about " [The storagenode docker run command has been updated](https://forum.storj.io/t/the-storagenode-docker-run-command-has-been-updated/7718)"

how do i need to do it to reconnect with my node, instead of creating a new one? I´m not sure if it´s going to be rewritten.

thanks

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [August 27, 2020, 7:47pm UTC](https://forum.storj.io/t/restart-node-in-docker-after-removing-the-container/8792/2 "2020-08-27T19:47:51Z")

</div>

You can execute the `docker run` command with your credentials after removing container. Its perfectly alright. Its how you can update your command with new wallet address or increase/decrease storage space.

```auto
docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28967:28967 \
    -p 127.0.0.1:14002:14002 \
    -e WALLET="0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
    -e EMAIL="user@example.com" \
    -e ADDRESS="domain.ddns.net:28967" \
    -e STORAGE="2TB" \
    --mount type=bind,source="<identity-dir>",destination=/app/identity \
    --mount type=bind,source="<storage-dir>",destination=/app/config \
    --name storagenode storjlabs/storagenode:latest

```

---

<div class="post-metadata">

**Author:** ![frances](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/frances/32/1137_2.png) [@frances](https://forum.storj.io/u/frances)\
**Post date:** [August 27, 2020, 8:55pm UTC](https://forum.storj.io/t/restart-node-in-docker-after-removing-the-container/8792/4 "2020-08-27T20:55:32Z")

</div>

well  
here i found the answer to all my problems.

history | grep “docker run”

there is the last command with all the parameters.

🙂

---

<div class="post-metadata">

**Author:** ![donald.m.motsinger](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/donald.m.motsinger/32/71_2.png) [@donald.m.motsinger](https://forum.storj.io/u/donald.m.motsinger)\
**Post date:** [August 27, 2020, 10:43pm UTC](https://forum.storj.io/t/restart-node-in-docker-after-removing-the-container/8792/5 "2020-08-27T22:43:38Z")

</div>

Once you’re at it, write this command into a script and run that script in the future. This way you won’t forget the command.
