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

Problems with binding user mounts #94

Closed
aakashhemadri opened this issue Jun 9, 2021 · 2 comments
Closed

Problems with binding user mounts #94

aakashhemadri opened this issue Jun 9, 2021 · 2 comments
Labels
question Further information is requested

Comments

@aakashhemadri
Copy link

aakashhemadri commented Jun 9, 2021

I am having a technical issue

I have a collection of docker images built into sandbox directories
I use this as a source and for my instance creation.
I then bind some arbitrary empty host folder to the container image. The container path has pre-existing files/folders created as a part of the image during build.
The host folder overwrites the container path, essentially mounting an empty folder unlike the expected union the docker runtime performs, causing the runscript to fail as scripts in these destination directories are used.

Not sure if I am doing something wrong here or am missing something.

Also can't seem to find documentation on what to do when volumes need to be shared across instances.

Any help is appreciated :)

@dtrudg
Copy link
Member

dtrudg commented Jun 9, 2021

I then bind some arbitrary empty host folder to the container image. The container path has pre-existing files/folders created as a part of the image during build.

This is normal behavior for Singularity. A straight bind mount is used - the directory bound-in will obscure whatever is already present at that location in the container. An overlay is not performed.

Also can't seem to find documentation on what to do when volumes need to be shared across instances.

Singularity differs from Docker in that it does not have a concept of volumes. The container filesystem is a combination of the container content, and direct binds from the host into the container. To share files between instances you would need a directory on the host that is bound into all of the instances.

@dtrudg dtrudg added the question Further information is requested label Jun 9, 2021
@aakashhemadri
Copy link
Author

Thanks for the clarification @dtrudg

@dtrudg dtrudg closed this as completed Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants