Dockerized Python application on Wago Controller
1. Hardware/Software in use: Ensure docker is
running via the
• Wago Edge Controller (752- WBM of the
8303/8000-002)
controller
• FW 04.04.03(23)
• Docker version 20.10.21
• Python version 3.7
Many of our Wago
Note: For most of our controllers have docker
controllers, we use an armv7 built in and are capable of
architecture. Ensure that the running containers.
docker image you’re pulling
from supports this This demo just shows the
architecture to work on our
hardware that I’ve used for
controllers.
testing.
Dockerized Python application on Wago Controller
2. Dockerfile and Python program [Link] Dockerfile
To dockerize your python
application, you’ll need to have:
1. Python application
2. Dockerfile
• For more information on Dockerfiles:
[Link]
erfile/
Dockerized Python application on Wago Controller
Files inside controller
3. Place the docker file and
python application in PLC.
Using FTP, I’ve created a
directory called Docker and Docker build command The docker build command will look
within that directory, I have my for any file named “Dockerfile” in the
Dockerfile and [Link] present directory and run it . The “-
t” flag is to name the image.
4. Docker Build
Using putty or whatever SSH Successful Docker build screen
utility you choose, go to the
folder created that has your
python script and dockerfile.
When inside the folder, use your
docker build command. For this I
use:
docker build -t testimage .
Dockerized Python application on Wago Controller
5. Check image and run container
If all goes well, you should have two
new images in your machine:
The python base image that you
selected via the FROM command and
the new image that you built.
Now we just have to run the
container:
docker run –it <image_ID>
More info on docker run and docker
build:
[Link]
docker/container/run/
[Link]
docker/image/build/