act/pkg/runner
Hibariya 8de7b956b7
Add --userns flag to support Docker daemon that enables user namespace (#533)
I got an error like this after hitting `act` command.

> Error: Error response from daemon: cannot share the host's network namespace when user namespaces are enabled

According to the document, when user namespaces are enabled on the Docker daemon,
neither host network mode and --privileged work without --userns=host. Since `act`
uses host network mode to match GitHub Actions runners, it cannot run jobs when
user namespaces are enabled. So I added the flag.

https://docs.docker.com/engine/security/userns-remap/#user-namespace-known-limitations

Co-authored-by: Casey Lee <cplee@nektos.com>
2021-02-27 08:31:25 -08:00
..
testdata Update Docker images (#524) 2021-02-23 09:49:24 -08:00
command.go GitHub env file support (#426) 2021-01-11 22:39:43 -08:00
command_test.go GitHub env file support (#426) 2021-01-11 22:39:43 -08:00
expression.go Shouldn't rewrite dot in a string to index syntax (#502) 2021-02-08 09:14:12 -08:00
expression_test.go Shouldn't rewrite dot in a string to index syntax (#502) 2021-02-08 09:14:12 -08:00
logger.go GitHub env file support (#426) 2021-01-11 22:39:43 -08:00
run_context.go Add --userns flag to support Docker daemon that enables user namespace (#533) 2021-02-27 08:31:25 -08:00
run_context_test.go Report error when if expression is invalid (#485) 2021-01-18 11:44:27 -08:00
runner.go Add --userns flag to support Docker daemon that enables user namespace (#533) 2021-02-27 08:31:25 -08:00
runner_test.go Update Docker images (#524) 2021-02-23 09:49:24 -08:00
step_context.go Add --userns flag to support Docker daemon that enables user namespace (#533) 2021-02-27 08:31:25 -08:00
step_context_test.go Update Docker images (#524) 2021-02-23 09:49:24 -08:00