I have a docker container running in portainer. I have added an SMB volume to the container. Does anyone know how I can update this docker container using docker-compose without undoing my changes? Thanks
@selfhosted @Docker @portainerio

  • chiisana@lemmy.chiisana.net
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    You’d mount the volume in the docker-compose.yml using the volumes: node.

    You can try to automatically generate the compose file via this command:

    docker run --rm \
        -v /var/run/docker.sock:/var/run/docker.sock:ro \
        ghcr.io/red5d/docker-autocompose \
        your-current-container-name-or-id-goes-here \
        another-container-should-there-be-more-than-one