I can't use the docker machine with another user than root

Open
#2 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker
Domain
devops

Research direction

Start by inspecting the Docker image configuration and reproduce the reported docker run -u $UID ... haxe build.hxml command with a mounted volume. Done means a non-root user can run Haxe without the first-run haxelib setup error and generated files are not owned by root on the host.

Written by the indexing model from the issue text.

Description

Hello,
I would like to use the machine to build my code using a mounted volume.
The concern is that this generates the files as root on my host.
A workaround to this is to run the machine using the user option as -u $UID
Unfortunately in that case, haxe complains as below
docker run -u $UID -it --rm --name my-running-aa my-haxe-app haxe build.hxml
Error: Error: This is the first time you are runing haxelib. Please run haxelib setup first

getting the concern with release 3.4 and 3.4.2

Dominant language
Dockerfile
Stars
30
Forks
8
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HaxeFoundation/docker-library-haxe

All issues in HaxeFoundation/docker-library-haxe

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.