lem icon indicating copy to clipboard operation
lem copied to clipboard

Docker container issues

Open blakemcbride opened this issue 1 year ago • 2 comments

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 avatar Jan 22 '24 21:01 blakemcbride

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

blakemcbride avatar Jan 22 '24 21:01 blakemcbride

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 :smile:

elken avatar Feb 28 '24 10:02 elken