I want to share my host with container.
I already have some services running in containers, e.g. Redis.
I want to run some app in another container. The app is suggesting that Redis is listening on localhost:6379.
From my host machine I have an access to that port, because I have port mapping from Redis-container port to host port.
I want my app container to have access to the same ports and networks which my host machine has.
I tried this command: docker --network=host run somecontainer but got unknown flag: --network so no success. SO question, Docker docs.
How else I can achieve the behavior described above? Host localhost = container localhost