Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containers with volumes containing spaces break the conversion #134

Open
jeremymeyers opened this issue Mar 5, 2025 · 1 comment
Open

Comments

@jeremymeyers
Copy link

My Navidrome container links to a local volume with a space in the name. Using runlike generated the following command

docker run --name=navidrome --hostname=navidrome --mac-address=02:42:ac:11:00:02 --volume /volume1/homes/JEREMYMEYERS/Drive/Backup/Music Drive/P/Sound Files:/music --volume /volume1/docker/data/navidrome:/data --env=LastFM.ApiKey=e4edbec1291d9501c3714857a1f57b8 --env=LastFM.Secret=a7e51b2b1eec62db83cf219180bd8da --network=bridge --workdir=/app -p 4533:4533 --restart=always --log-driver=db --runtime=runc --detach=true -t deluan/navidrome:latest

Running it through Containerize.com leads to this result, which is borked.

version: "2.4"
services:
    Sound:
        container_name: navidrome
        hostname: navidrome
        mac_address: 02:42:ac:11:00:02
        volumes:
            - /volume1/homes/JEREMYMEYERS/Drive/Backup/Music
        image: Drive/P/Sound
        command: Files:/music --volume /volume1/docker/data/navidrome:/data
            --env=LastFM.ApiKey=[EDITED]
            --env=LastFM.Secret=[EDITED] --network=bridge
            --workdir=/app -p 4533:4533 --restart=always --log-driver=db
            --runtime=runc --detach=true -t deluan/navidrome:latest

It looks like the spaces in the volumes break the parsing altogether.

@jeremymeyers
Copy link
Author

D'oh this is meant to be a containerize bug. Though you might want to check for spaces and use quotes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant