I created a container with a comprehensive list of volumes, network maps and environment variables.

Is there any way Portainer exports the container configuration or provide a Docker CLI command to create such container?

  • thekrautboy@alien.topB
    link
    fedilink
    English
    arrow-up
    4
    ·
    11 months ago

    https://github.com/Red5d/docker-autocompose

    Generates a docker-compose yaml definition from a docker container.

    For the future you should get started by using compose files from the beginning, and keep those as your “backup” of the container config. Exporting them from a deployed container is not the intended approach.