July-5th-2018, 10:13 AM
Yes correct, using network = host makes mapping ports obsolete. But using the host mode has disadvantages if you want to run multiple containers of the same type at the same time. If they all use a port 1000 for example they cannot be driven in host mode. With mapping you can set one container to 1000:1000 the other to 1001:1000 and so on. So my recommendation is, if you can avoid it, then do not use host mode.
Then to your question about how to copy an image. You have to know that the concept of netPI is to be a Docker Host only. This means at the current stage, netPI can only start ready-to-use/pre-developed containers and it is no development platform. So you need a Docker registry where you can pull your ready images from for all your netPI's in use. We decided to push all our example images to Docker Hub where everybody can pull the images from. You can do the same. We use the Docker Hub public mode for free. You can create your own Registry in 5 minutes on Docker Hub too and pull you image from there on all netPIs you want to use in future.
Our examples images are based on github projects that are related to the corresponding Docker Hub repository. You can do it differently: use a standard Raspberry Pi, develop the image there and push it to Docker hub with no source code. Then you can load it from there on all your netPI's.
Then to your question about how to copy an image. You have to know that the concept of netPI is to be a Docker Host only. This means at the current stage, netPI can only start ready-to-use/pre-developed containers and it is no development platform. So you need a Docker registry where you can pull your ready images from for all your netPI's in use. We decided to push all our example images to Docker Hub where everybody can pull the images from. You can do the same. We use the Docker Hub public mode for free. You can create your own Registry in 5 minutes on Docker Hub too and pull you image from there on all netPIs you want to use in future.
Our examples images are based on github projects that are related to the corresponding Docker Hub repository. You can do it differently: use a standard Raspberry Pi, develop the image there and push it to Docker hub with no source code. Then you can load it from there on all your netPI's.
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)