C
C#4mo ago
whatsinaname

✅ azurite using the docker

I'm trying to backup the data in my local running azurite container but it's not happening. Did anyone do it? I want to backup and upgrade my azurite image without losing the data
12 Replies
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinaname4mo ago
Docker cp containername:/data localpath is not working
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinaname4mo ago
I have been using it but every time when I have to upgrade, I am resin stalling the new one I needed to keep the old data and without losing it, want to upgrade it. Thank you, I'll check and update here
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinaname4mo ago
This is for local development don't wanna reset some of the docs everytime when i update the azurite there has to be a way to backup before upgrading the docker container • Stop the Service o docker stop <azurite_container_name> o example: docker stop myAzurite • Copy the data from container (this is copy from container to the host) o docker cp <azurite_container_name>:/opt/azurite {host_path} o example: docker cp myAzurite:/ ./backup • pull the latest version o docker pull mcr.microsoft.com/azure-storage/azurite:latest • run the new container o docker run --name <new_container_name> -p 10000:10000 mcr.microsoft.com/azure-storage/azurite:latest azurite-blob --blobHost 0.0.0.0 o Example: docker run -d --name myAzurite1 -p 10000:10000 mcr.microsoft.com/azure-storage/azurite:latest azurite-blob --blobHost 0.0.0.0 • Copy local backup data to container (this is copy from host to the container) o docker cp {host_path} <azurite_container_name>:/opt/azurite o Example: docker cp ./backup/. myAzurite1:/opt/azurite i was able to achieve this
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinaname4mo ago
This is for local development. Why to pay for that. We can use it without Internet It runs on our localhost. We can always have control over it
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinaname4mo ago
Yes. I agree, exporting would work Again, why do we need to pay for local development
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
whatsinaname
whatsinaname4mo ago
Thank you Yes