June-10th-2020, 07:53 AM
(This post was last modified: June-10th-2020, 07:58 AM by Armin@netPI.)
The procedure is as follows:
1. Install Raspbian OS on your RPi SD card
2. Install Docker on your RPi as described here https://www.raspberrypi.org/blog/docker-...pberry-pi/
3. Now you have two methods to build a container image
I always recommend to use Dockerfile based build process. Once you have the Dockerfile ready just call in this folder "docker build -t thisismyfirstcontainer:1.0 ." to start building process. You can try loading a Dockerfile from the web like this one here https://github.com/HilscherAutomation/ne...Dockerfile and call "docker build -t thisismyfirstcontainer:1.0 ." in the folder you put the Dockerfile to ... and you will see it will build the HDMI image on your original RPi3. if you call "docker images" after the build you will recognize the container image named as "thisismyfirstcontainer:1.0".
The manual way I have described here 4 years ago https://www.netiot.com/netpi/industrial-...pberry-pi/
I also recommend to make a simple test to get familiar with Docker first of all. Deploy a hello-world container first as described here https://iotbytes.wordpress.com/setting-u...container/
Thx
Armin
1. Install Raspbian OS on your RPi SD card
2. Install Docker on your RPi as described here https://www.raspberrypi.org/blog/docker-...pberry-pi/
3. Now you have two methods to build a container image
- Build an image based on a script file named by default Dockerfile. Command reference of Dockerfile is here https://www.raspberrypi.org/blog/docker-...pberry-pi/. Hilscher uses this method always since the script file is constant and the resulting Docker container is always the same. Here is an example of a Dockerfile of HDMI container: https://github.com/HilscherAutomation/ne...Dockerfile
- Or you do manually
- your own registry on a local Linux server (like a commercial Raspberry Pi also) running, so not everybody can access it. I described how to make an own registry server here https://forum.hilscher.com/Thread-Setup-...containers
- or you use an Internet Docker Registry like Docker Hub at https://hub.docker.com/. This is how Hilscher is doing it. So create an account there and you can push container images onto Docker Hub for free if they are public. This is how Hilscher is doing it at https://hub.docker.com/u/hilschernetpi repository.
I always recommend to use Dockerfile based build process. Once you have the Dockerfile ready just call in this folder "docker build -t thisismyfirstcontainer:1.0 ." to start building process. You can try loading a Dockerfile from the web like this one here https://github.com/HilscherAutomation/ne...Dockerfile and call "docker build -t thisismyfirstcontainer:1.0 ." in the folder you put the Dockerfile to ... and you will see it will build the HDMI image on your original RPi3. if you call "docker images" after the build you will recognize the container image named as "thisismyfirstcontainer:1.0".
The manual way I have described here 4 years ago https://www.netiot.com/netpi/industrial-...pberry-pi/
I also recommend to make a simple test to get familiar with Docker first of all. Deploy a hello-world container first as described here https://iotbytes.wordpress.com/setting-u...container/
Thx
Armin
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)