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

Working directory of some Docker images prevents container startup when run as non-root user #61

Closed
kirkrodrigues opened this issue Jul 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@kirkrodrigues
Copy link
Member

Bug

Some of the Docker images (e.g., clp/clp-execution-x86-ubuntu-focal) have their working directory set to /root which will prevent starting up the container as a non-root user. This only occurs with some versions of Docker (e.g., 19.03.2).

The error message is:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "chdir to cwd (\"/root\") set in config.json failed: permission denied": unknown.

CLP version

5f80e1e

Environment

  • Docker 19.03.2
  • Ubuntu 18.04

Reproduction steps

docker run -it --rm -u$(id -u):$(id -g) ghcr.io/y-scope/clp/clp-execution-x86-ubuntu-focal:main /bin/bash

@kirkrodrigues kirkrodrigues added the bug Something isn't working label Jul 21, 2022
kirkrodrigues added a commit to kirkrodrigues/clp that referenced this issue Jul 21, 2022
- Set the working directory of all containers so that it's accessible by any non-root user
- Add a script to build tools/docker-images/clp-execution-base-focal
- Make the names of all containers consistent with those on GitHub
kirkrodrigues added a commit that referenced this issue Jul 21, 2022
- Set the working directory of all containers so that it's accessible by any non-root user
- Add a script to build tools/docker-images/clp-execution-base-focal
- Make the names of all containers consistent with those on GitHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant