Deprecated: Use of ParserOutput::getProperty was deprecated in MediaWiki 1.38. [Called from MediaWiki\Skin\Cosmos\CosmosHooks::onOutputPageParserOutput in /var/www/html/doc/skins/Cosmos/includes/CosmosHooks.php at line 81] in /var/www/html/doc/includes/debug/MWDebug.php on line 377
Docker Networking - PhenixOps
Anonymous
×
Create a new article
Write your page title here:
We currently have 27 articles on PhenixOps. Type your article name above or click on one of the titles below and start writing!



PhenixOps
27Articles
Revision as of 21:40, 24 April 2020 by Phenixops (talk | contribs)

Docker Networking

Creating the overlay network

docker network create --driver bridge phenixnet

See the network

docker network ls

Add a container to the network

docker run -d --network=phenixnet --name phenixapp -hostname phenixapp -p 8080 nginx

Ping the container from another one

This will launch a shell on a busybox container, you can ping, curl etc.

docker run -it --rm --network=phenixnet --name phenixapp -hostname phenixclient yauritux/busybox-curl /bin/sh

See the network from the client

curl phenixapp

ping phenixapp

Trash the network

docker network rm