Jump to content

Docker (software): Difference between revisions

Line 132: Line 132:
===Accessing Host===
===Accessing Host===
See [https://github.com/qoomon/docker-host docker-host] for a container which can access the host.   
See [https://github.com/qoomon/docker-host docker-host] for a container which can access the host.   
I haven't tried this but you should be able to use this in docker-compose to resolve to localhost.
Add the following to your docker compose to expose port 8201 to other containers:
<syntaxhighlight lang="yml">
  docker-host:
    image: qoomon/docker-host
    cap_add:
      - NET_ADMIN
      - NET_RAW
    expose:
      - 8201
</syntaxhighlight>


==Resources==
==Resources==