mhutter / ansible-docker-systemd-service

Ansible role for creating Systemd services for docker containers
https://galaxy.ansible.com/mhutter/docker-systemd-service
MIT License
48 stars 30 forks source link

Add support for `--add-host` #57

Closed andygrunwald closed 1 year ago

andygrunwald commented 1 year ago

The --add-host argument for docker run can be used to access the docker host from inside a container. See https://docs.docker.com/engine/reference/commandline/run/#add-host

With lines like --add-host=host.docker.internal:host-gateway.

Support for the --add-host command in docker run would be awesome.