Created
June 12, 2018 08:26
-
-
Save jesusgn90/c92d10a7f4db27c99e7415b552efa8ee to your computer and use it in GitHub Desktop.
Useful commands for Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create subnet | |
docker network create --subnet=172.18.0.0/16 mynet123 | |
// Create container on subnet and attach into it | |
docker run --net mynet123 --ip 172.18.0.21 -it ubuntu:18.04 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment