question

sylvain31 avatar image
1 Vote"
sylvain31 asked azure-cxp-api edited

[Dockerized Web Apps] How to manage running image?

Hi,
I have an App Service using an image from a Container Registry, I can see the "docker run --name <container_id>" command in the logs.
My question is: how can I connect to this container id?
Let's say I made changes in the running application and unfortunately I didn't made persistent volumes, but I don't want to lose the changes. How can I copy the container to a new image (using "docker commit") ?
Thanks.

In short, that's what I'd like to achieve: https://www.crybit.com/how-to-update-a-docker-image-with-new-changes/

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered

Hi @PAILLASSESYLVAIN-2349,

This is not support on Container App Services. There is no facility to get “underneath” a running container to run a command like docker commit. Furthermore, there's no mechanism to retreive container images from App Services given their stateless infrastructure.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.