AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Docker network options3/20/2024 This driver only works on Linux hosts, and it is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server. Host network mode is used to optimize performance as it does not require network address translation. As we know now, the container does not get any IP address assigned when using the host network driver that means if we bind to port 80 to a running container and the container is using the host network, then the application running inside the container is available on port 80 on the host’s IP address, it also means we cannot bind the same port to two different containers. We have to use the ‘–network’ option and specify ‘host’ as an argument to use the host network driver while running a container. $docker run -d -network host -name my_con nginx:alpine Web development, programming languages, Software testing & others Start Your Free Software Development Course
0 Comments
Read More
Leave a Reply. |