DockerDemo » History » Version 1
Michel Condemine Admin, 02/22/2023 10:30 PM
1 | 1 | Michel Condemine Admin | # How to use OpenOpcUa Docker image |
---|---|---|---|
2 | ## Overview |
||
3 | This docker image is based on Debian linux/amd64. It contains an OpenOpcUa (OOUA) demo. The demo simulate a tank with a bunch of methods and variables. |
||
4 | There is a Tank01 instance (UAObject) of TankType (UAObjectType). You can play with method StartPump, StopPump, Drain, GetCurrentLevel, etc. |
||
5 | The server is listening on port 2407. |
||
6 | ## Introduction |
||
7 | The docker image is hosted on a public Docker Repository on Docker Hub. Do you can pull it and use it as long as you want. |
||
8 | ## Requirements |
||
9 | 1) A valid docker account |
||
10 | 2) Docker Desktop installed [Download here](https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe?utm_source=docker&utm_medium=webreferral&utm_campaign=dd-smartbutton&utm_location=module) |
||
11 | 3) An OPC UA client to connect to the server |
||
12 | |||
13 | ## How to use it ? |
||
14 | 1) Get the image from Docker hub from a command line |
||
15 | 2) Start a commande line (CMD) |
||
16 | 3) To get the image from Docker hub. |
||
17 | From the command line enter the following command: |
||
18 | >docker pull michel4ce/oouasimulationtank:0.0.1 |
||
19 | 4. To run the image |
||
20 | From the commande line enter the following command: |
||
21 | >docker container run -dp 2407:2407 -t michel4ce/oouasimulationtank:0.0.1 |
||
22 | |||
23 | ## Verify the container was receive properly. |
||
24 | Using Docker Desktop go to the Images list. You shall see something like this : |
||
25 |  |
||
26 | |||
27 | ## Verify the the image is runnning properly. |
||
28 | 1. If the image was started properly. Then the port 2407 shall be bind. As you can see from the Inpect tab : |
||
29 |  |
||
30 | 2. From the Log tab. you can see that the server is running listening on : |
||
31 | >opc.tcp://localhost:2407/DemoTank |
||
32 |  |
||
33 | ## Connect using an OPC UA client |
||
34 | Here an example with UAExpert from Unified Automation. But you can use any client. |
||
35 |  |
||
36 | |||
37 | If you are facing problem don't hesite to create an issue |
||
38 | [Open an issue](http://www.openopcua.org/redmine/projects/openopcua/issues) |