From 1082734e262eae6d7035ccdafb48ac798f7f6896 Mon Sep 17 00:00:00 2001 From: Anthony <28800445+defragm@users.noreply.github.com> Date: Wed, 29 Dec 2021 23:21:10 +0100 Subject: [PATCH] Updated Docker server installation (markdown) --- Docker-server-installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docker-server-installation.md b/Docker-server-installation.md index bf868ff..0e38923 100644 --- a/Docker-server-installation.md +++ b/Docker-server-installation.md @@ -44,7 +44,7 @@ This command will run the container so that it is only available on your local n First, you have to create a new network in Docker to access your local network. Here is an example, give note to "parent" and the network numbers as it may differ from your own. For more detailed information, [click here](https://blog.oddbit.com/post/2018-03-12-using-docker-macvlan-networks/). ~~~~ -docker network create -d macvlan -0 parent=eth0 --subnet 192.168.2.0/24 --gateway 192.168.2.254 --iprange 192.168.2.252/27 mynet +docker network create -d macvlan -o parent=eth0 --subnet 192.168.2.0/24 --gateway 192.168.2.254 --ip-range 192.168.2.252/27 mynet ~~~~ Secondly, you have to adjust the docker run command so it takes this network into account but keep using localhost to limit the accessibility of the ports to the outside world.