sudoedit
but for files in Docker volumes.
$ echo "FROM vlnd/docker-edit" | docker buildx build - -o type=local,dest=$HOME/.docker/cli-plugins --pull
$ docker edit <volume> <file-path-in-volume>
$ make # Build bin/docker-edit binary
$ make install # Install binary to ~/.docker/cli-plugins