act/pkg/container
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
..
docker_build.go extract the docker NewClientWithOpts, and add connectionhelper for DOCKER_HOST set to ssh://remote (#207) 2020-05-03 21:15:42 -07:00
docker_images.go extract the docker NewClientWithOpts, and add connectionhelper for DOCKER_HOST set to ssh://remote (#207) 2020-05-03 21:15:42 -07:00
docker_images_test.go unit tests 2020-02-20 21:05:31 -05:00
docker_logger.go add commands support 2020-02-20 21:05:42 -05:00
docker_pull.go extract the docker NewClientWithOpts, and add connectionhelper for DOCKER_HOST set to ssh://remote (#207) 2020-05-03 21:15:42 -07:00
docker_pull_test.go initial load of yaml working 2020-02-04 16:38:41 -08:00
docker_run.go Add --userns flag to support Docker daemon that enables user namespace (#533) 2021-02-27 08:31:25 -08:00
docker_volume.go Fix container volumes being reused sometimes (#283) 2020-06-18 08:21:55 -07:00