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

adding a symbolic link to the container through --volume, the real file should be accessed #19925

Closed
I-Want-ToBelieve opened this issue Sep 11, 2023 · 3 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@I-Want-ToBelieve
Copy link

I-Want-ToBelieve commented Sep 11, 2023

Feature request description

When adding a symbolic link to the container through --volume, the real file cannot be accessed.

Unless the path pointed to by the symbolic link is also added, but sometimes this cannot be done, it would be great if you could directly follow the symbolic link to obtain the real file and copy the file into container.

Suggest potential solution

A clear and concise description of what you want to happen.

Have you considered any alternatives?

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

@I-Want-ToBelieve I-Want-ToBelieve added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 11, 2023
@I-Want-ToBelieve I-Want-ToBelieve changed the title adding a symbolic link to the container through --volume, the real file should be accessed adding a symbolic link to the container through --volume, the real file should be accessed Sep 11, 2023
@I-Want-ToBelieve I-Want-ToBelieve changed the title adding a symbolic link to the container through --volume, the real file should be accessed adding a symbolic link to the container through --volume, the real file should be accessed Sep 11, 2023
@wnm3
Copy link

wnm3 commented Oct 12, 2023

@I-Want-ToBelieve why was this closed? This is a bug as far as I'm concerned because docker does allow volume references to symbolic links and podman will not.

Our use case was having mounted a disk off root to add space to a machine, we want to mount /store/pipeline (where /store is the mounted disk). This works fine with podman/docker. However, to simulate this environment on MacOS we can not create a directory off root, only a symbolic link via the /etc/synthetic.conf file. We can not mount the resulting /store/pipeline where /store -> ~/store. This works fine with docker though.

We want to use the same script to launch a container with the volume mount point to be /store/pipeline regardless of the environment (direct or symlinked /store).

@rhatdan
Copy link
Member

rhatdan commented Oct 12, 2023

@wnm3 Please open a new issue and include all of the podman info

@wnm3
Copy link

wnm3 commented Oct 12, 2023

Done: #20350

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Jan 11, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

3 participants