[Dockerized Web Apps] How to manage running image?

Sylvain 216 Reputation points
2020-04-25T07:35:48.597+00:00

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 App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,959 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,146 Reputation points Microsoft Employee
    2020-05-01T23:19:35.883+00:00

    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.

    0 comments No comments