Docker: Difference between revisions
Jump to navigation
Jump to search
m (Protected "Docker" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
|||
Line 76: | Line 76: | ||
| valign="top" | | | valign="top" | | ||
* [https://stackoverflow.com/questions/63572071 Docker published ports are not reachable] | * [https://stackoverflow.com/questions/63572071 Docker published ports are not reachable] | ||
* [https://www.slideshare.net/SreenivasMakam/docker-networking-common-issues-and-troubleshooting-techniques Docker Networking - Common Issues] | |||
* [https://developer.ibm.com/recipes/tutorials/networking-your-docker-containers-using-docker0-bridge Purpose of docker0 interface] | |||
* [https://forums.centos.org/viewtopic.php?t=61634 Purpose of virbr0 interface] | |||
* [https://superuser.com/questions/995373 Remove docker0 bridge] | |||
* [https://docs.docker.com/engine/reference/builder/ Dockerfile Reference] | * [https://docs.docker.com/engine/reference/builder/ Dockerfile Reference] | ||
* [https://www.calculator.net/ip-subnet-calculator.html?cclass=any&csubnet=28&cip=10.19.83.1&ctype=ipv4&printit=0&x=81&y=28 <code>10.19.83.0/28</code>] | * [https://www.calculator.net/ip-subnet-calculator.html?cclass=any&csubnet=28&cip=10.19.83.1&ctype=ipv4&printit=0&x=81&y=28 <code>10.19.83.0/28</code>] |
Revision as of 03:46, 13 September 2020
Windows 10 Home
# powershell
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
# powershell
docker pull hello-world
docker run -it --rm --name hello hello-world:latest
# gitbash
winpty docker pull hello-world
winpty docker run -it --rm --name hello hello-world:latest
Knowledge
docker network ls
docker network prune
docker network rm docker_net_00 docker_net_01
docker network create --subnet 10.19.83.0/24 --ip-range 10.19.83.16/28 docker_brg_01
docker network create --subnet 10.19.83.0/24 --ip-range 10.19.83.32/28 docker_brg_02
docker network create --subnet 10.19.83.0/24 --ip-range 10.19.83.48/28 docker_brg_03
docker network create --subnet 10.19.83.0/24 --ip-range 10.19.83.64/28 docker_brg_04
docker network create --subnet 10.19.83.0/24 --ip-range 10.19.83.80/28 docker_brg_05
docker network create --subnet 10.20.13.0/24 --ip-range 10.20.13.16/28 docker_net_01
docker network create --subnet 10.20.13.0/24 --ip-range 10.20.13.32/28 docker_net_02
docker network create --subnet 10.20.13.0/24 --ip-range 10.20.13.48/28 docker_net_03
docker network create --subnet 10.20.13.0/24 --ip-range 10.20.13.64/28 docker_net_04
docker network create --subnet 10.20.13.0/24 --ip-range 10.20.13.80/28 docker_net_05
docker run -itd --network=docker_net_01 nexus
docker network disconnect docker_net_01 nexus
docker network connect --alias db --alias mysql docker_net_01 mysql