# Can i delete and rebuild the docker container without losing my progress

**URL:** <https://forum.storj.io/t/can-i-delete-and-rebuild-the-docker-container-without-losing-my-progress/26529>\
**Category:** FAQ\
**Tags:** docker\
**Created:** [June 9, 2024, 1:56am UTC](https://forum.storj.io/t/can-i-delete-and-rebuild-the-docker-container-without-losing-my-progress/26529 "2024-06-09T01:56:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![1arrcy1](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/1arrcy1/32/7825_2.png) [@1arrcy1](https://forum.storj.io/u/1arrcy1)\
**Post date:** [June 9, 2024, 1:56am UTC](https://forum.storj.io/t/can-i-delete-and-rebuild-the-docker-container-without-losing-my-progress/26529/1 "2024-06-09T01:56:37Z")

</div>

Hey there, I have an issue where my disk fills with logs, and i also want to have lower fees for payout, im using enkrypt wallet address and ran

docker run --rm -e SETUP=“true” --user $(id -u):$(id -g) --mount type=bind,source=“/Storage/Storj/Identity”,destination=/app/identity --mount type=bind,source=“/Storage/Storj/Settings”,destination=/app/config --name storagenode storjlabs/storagenode:latest

docker run -d --restart unless-stopped --stop-timeout 300 -p 28967:28967/tcp -p 28967:28967/udp -p 0.0.0.0:14002:14002 -e WALLET=“” -e EMAIL=“” -e ADDRESS=“:28967” -e STORAGE=“11TB” --mount type=bind,source=“/Storage/Storj/Identity”,destination=/app/identity --mount type=bind,source=“/Storage/Storj/Settings”,destination=/app/config --name storagenode storjlabs/storagenode:latest

i would like to know if i can safely remove the container with  
docker stop id  
docker rm -f id

docker run --rm -e SETUP=“true” --user $(id -u):$(id -g) --mount type=bind,source=“/Storage/Storj/Identity”,destination=/app/identity --mount type=bind,source=“/Storage/Storj/Settings”,destination=/app/config --name storagenode storjlabs/storagenode:latest

docker run -d --restart unless-stopped --stop-timeout 300 -p 28967:28967/tcp -p 28967:28967/udp -p 0.0.0.0:14002:14002 -e WALLET=“” -e EMAIL=“” -e ADDRESS=“:28967” -e STORAGE=“11TB” --mount type=bind,source=“/Storage/Storj/Identity”,destination=/app/identity --mount type=bind,source=“/Storage/Storj/Settings”,destination=/app/config --name storagenode storjlabs/storagenode:latest --operator.wallet-features=zksync-era,zksync --log-opt max-size=100m

can i safely perform these commands without losing progress  
or do i have to do it differently, much thx

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [June 9, 2024, 2:56am UTC](https://forum.storj.io/t/can-i-delete-and-rebuild-the-docker-container-without-losing-my-progress/26529/2 "2024-06-09T02:56:36Z")

</div>

> [@1arrcy1](#):
>
> docker run --rm -e SETUP=“true” --user $(id -u):$(id -g) --mount type=bind,source=“/Storage/Storj/Identity”,destination=/app/identity --mount type=bind,source=“/Storage/Storj/Settings”,destination=/app/config --name storagenode storjlabs/storagenode:latest

Please do not execute this command for the worked node, it should be executed only once and never again.

> [@1arrcy1](#):
>
> i would like to know if i can safely remove the container with  
> docker stop id  
> docker rm -f id

yes, this is how the docker containers are used.

> [@1arrcy1](#):
>
> ```auto
> --log-opt max-size=100m
> 
> ```

This option should be provided before the image name, not after, because it’s a docker’s option, not a storagenode’s one.  
I would also recommend to change the default number of logs with `--log-opt max-file=3` option. It should be specified before the image name too.
