1
0
Fork 0
mirror of https://github.com/louislam/dockge.git synced 2026-03-03 02:06:55 -05:00

Bind Mount Volume Translated Incorrectly From Docker Run #44

Open
opened 2026-02-20 13:09:54 -05:00 by deekerman · 2 comments
Owner

Originally created by @MeCJay12 on GitHub (Nov 27, 2023).

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

From the home page, this docker run command was entered into the converstion tool:

docker run -d \
	--restart=always \
	--network better_bridge \
	--name YTDL \
	--mount type=bind,src=/mnt/Data/Seeding/_YTDL/,dst=/downloads \
	alexta69/metube

This was the output when trying to deploy the stack:

Dockge

It seems like src and dst are incorrect and I was able to fix it by chnaging to source and target respectively.

👟 Reproduction steps

From the home page, enter this docker run command into the converstion tool:

docker run -d \
	--restart=always \
	--network better_bridge \
	--name YTDL \
	--mount type=bind,src=/mnt/Data/Seeding/_YTDL/,dst=/downloads \
	alexta69/metube

👀 Expected behavior

The next Deploy button should launch the container successfully.

😓 Actual Behavior

Dockge

Dockge Version

1.2.0

💻 Operating System and Arch

Ubuntu 22.04 x64

🌐 Browser

Chrome 119.0.6045.160 (Official Build) (64-bit)

🐋 Docker Version

No response

🟩 NodeJS Version

Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1

📝 Relevant log output

No response

Originally created by @MeCJay12 on GitHub (Nov 27, 2023). ### ⚠️ Please verify that this bug has NOT been reported before. - [X] I checked and didn't find similar issue ### 🛡️ Security Policy - [X] I agree to have read this project [Security Policy](https://github.com/louislam/dockge/security/policy) ### Description From the home page, this docker run command was entered into the converstion tool: ``` docker run -d \ --restart=always \ --network better_bridge \ --name YTDL \ --mount type=bind,src=/mnt/Data/Seeding/_YTDL/,dst=/downloads \ alexta69/metube ``` This was the output when trying to deploy the stack: ![Dockge](https://github.com/louislam/dockge/assets/43658705/8a0b3f51-e804-4736-bbd5-488cbabc752a) It seems like src and dst are incorrect and I was able to fix it by chnaging to source and target respectively. ### 👟 Reproduction steps From the home page, enter this docker run command into the converstion tool: ``` docker run -d \ --restart=always \ --network better_bridge \ --name YTDL \ --mount type=bind,src=/mnt/Data/Seeding/_YTDL/,dst=/downloads \ alexta69/metube ``` ### 👀 Expected behavior The next Deploy button should launch the container successfully. ### 😓 Actual Behavior ![Dockge](https://github.com/louislam/dockge/assets/43658705/beb599da-6ce9-45d4-bcd0-c1bdea04a7e0) ### Dockge Version 1.2.0 ### 💻 Operating System and Arch Ubuntu 22.04 x64 ### 🌐 Browser Chrome 119.0.6045.160 (Official Build) (64-bit) ### 🐋 Docker Version _No response_ ### 🟩 NodeJS Version Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1 ### 📝 Relevant log output _No response_
Author
Owner

@louislam commented on GitHub (Nov 28, 2023):

    volumes:
      - type: volume
        source: db-data
        target: /data

The correct one should be this. Will transfer the issue to https://github.com/composerize/composerize

@louislam commented on GitHub (Nov 28, 2023): ```yaml volumes: - type: volume source: db-data target: /data ``` The correct one should be this. Will transfer the issue to https://github.com/composerize/composerize
Author
Owner

@MeCJay12 commented on GitHub (Nov 28, 2023):

I noticed that if I set the type to volume it would not work at all in this form. I had to use the src:dst format for volume type volumes.

Wouldn't work
    volumes:
      - type: volume
        source: db-data
        target: /data
Works
    volumes:
      - db-data:/data

image

I'm opened this bug for

Generated
    volumes:
      - type: bind
        src: db-data
        dst: /data
Working
    volumes:
      - type: bind
        source: db-data
        target: /data

A little later on I found that bind mounts that are read only also convert wrong. I can open a new bug for it but I think it would be easy to fix at once. They come through as readonly: null when they should be read_only: true.

Input
    docker run -d \
	--restart always \
	--network better_bridge \
	--name Ubooquity \
	--mount type=bind,src=/mnt/Docker/Ubooquity,dst=/config \
	--mount type=bind,src=/mnt/Data/Books/,dst=/books,readonly \
	-e TZ=America/New_York \
	linuxserver/ubooquity
Generated
    volumes:
      - type: bind
        src: /mnt/Data/Books/
        dst: /books
        readonly: null
Functional
    volumes:
      - type: bind
        src: /mnt/Data/Books/
        dst: /books
        read_only: true
@MeCJay12 commented on GitHub (Nov 28, 2023): I noticed that if I set the type to volume it would not work at all in this form. I had to use the src:dst format for volume type volumes. ``` Wouldn't work volumes: - type: volume source: db-data target: /data Works volumes: - db-data:/data ``` ![image](https://github.com/louislam/dockge/assets/43658705/e24da826-f6a0-4e6a-92f4-1e4bc4fa5499) I'm opened this bug for ``` Generated volumes: - type: bind src: db-data dst: /data Working volumes: - type: bind source: db-data target: /data ``` A little later on I found that bind mounts that are read only also convert wrong. I can open a new bug for it but I think it would be easy to fix at once. They come through as `readonly: null` when they should be `read_only: true`. ``` Input docker run -d \ --restart always \ --network better_bridge \ --name Ubooquity \ --mount type=bind,src=/mnt/Docker/Ubooquity,dst=/config \ --mount type=bind,src=/mnt/Data/Books/,dst=/books,readonly \ -e TZ=America/New_York \ linuxserver/ubooquity Generated volumes: - type: bind src: /mnt/Data/Books/ dst: /books readonly: null Functional volumes: - type: bind src: /mnt/Data/Books/ dst: /books read_only: true ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dockge-louislam#44
No description provided.