Strange behavior with docker-compose run --rm stack is-db init (dial tcp : connect refused)

System : Windows10 + Docker with WSL2 with Ubuntu 20.04

Hello so I’ve already setup a server on localhost:1815 and it’s working fine, I’ve wrote what I did so I would be able to do it a second time.

I’ve copied in another folder the files from the server that worked fine and deleted folders (acme/blop/.env) and tried to do the procedure again which is just :

docker-compose pull
docker-compose run --rm stack is-db init

which show me this error :
image

I wrote docker-compose run --rm stack is-db init a second time same error :
image

Then I tried again and it worked:
image

Why is it working ? (I use an older tag of The Thing Stack because I had the error “ttn_lorawan does not exist” with the latest tag)

Thanks you