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

oci-env can't mount files between host and container #101

Open
decko opened this issue Mar 10, 2023 · 0 comments
Open

oci-env can't mount files between host and container #101

decko opened this issue Mar 10, 2023 · 0 comments

Comments

@decko
Copy link
Member

decko commented Mar 10, 2023

Description

When using the volumes directive on the compose.yaml file of a profile you can't use it to mount a host file into the container.

How to reproduce

Create a new profile and in the compose.yaml file, create a new services entry, add a new volumes directive to it and try to mount or bind a file from the host to the container, like this:

services:
    some_service:
        volumes:
            - ./a_local_file.yml:/etc/a_container_file.yml

What is expected

You're expected to find that same file inside of the container, although you gonna find it mounted as an empty directory.

Additional info

You can find under the ./compiled/oci_env directory the directory with the same name of the file which was intended to be mounted into the container.

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