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

Docker container issues #1271

Open
blakemcbride opened this issue Jan 22, 2024 · 2 comments
Open

Docker container issues #1271

blakemcbride opened this issue Jan 22, 2024 · 2 comments

Comments

@blakemcbride
Copy link

blakemcbride commented Jan 22, 2024

I have two problems with using a docker container as follows:

Problem n°1

$ docker build -t lem .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Problem n°2

When I try to save a file to /shared I get permission denied. I tried starting it up in /tmp and got the same error. (/tmp is 777).

@blakemcbride
Copy link
Author

The second problem is fixed by running: docker run --rm -it --privileged -v .:/shared lem

@elken
Copy link
Contributor

elken commented Feb 28, 2024

Seems neither are related to Lem, but:

  1. docker buildx build -t lem . (assuming you're on docker 19.03 or higher, otherwise follow the link for install instructions)

  2. As you said, it's a permissions issue. Could also be SELinux, try running with --security-opt label=disable
    image

I can try to spend some time on the Docker setup & integrating ghcr soon 😄

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

No branches or pull requests

3 participants