{"id":647,"date":"2015-12-05T21:46:09","date_gmt":"2015-12-05T19:46:09","guid":{"rendered":"http:\/\/www.rocworks.at\/wordpress\/?p=647"},"modified":"2015-12-07T11:54:59","modified_gmt":"2015-12-07T09:54:59","slug":"docker-image-for-wincc-oa","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=647","title":{"rendered":"Docker Image for WinCC OA&#8230;"},"content":{"rendered":"<p>I pushed a docker image for WinCC OA to the docker hub.<\/p>\n<p>docker pull vogler\/winccoa<\/p>\n<p>It is based on opensuse and WinCC OA 3.13 P009.<\/p>\n<p>At the first startup it will ask for a system number and the system name.<\/p>\n<p style=\"padding-left: 30px;\">root@debian1:~# docker run -t -i &#8211;name=<strong>oa1<\/strong> vogler\/winccoa startup<br \/>\nPlease enter your desired system name and system number&#8230;<br \/>\nsysnum? 1<br \/>\nsysname? oa1<br \/>\nDo you wish to set the project to oa1 with num 1?<br \/>\n1) Yes<br \/>\n2) No<br \/>\n#? 1<\/p>\n<p>It will set the system number and the system name of the project. The projectname itself is currently always &#8220;WinCCOA&#8221;, but this does not matter, because every WinCC OA project will run in a seperate container.<\/p>\n<p>To startup the container and the WinCC OA project,\u00a0type:<\/p>\n<p style=\"padding-left: 30px;\">root@debian1:~# docker start <strong>oa1<\/strong><\/p>\n<p>To enter the container:<\/p>\n<p>docker exec -it <strong>oa1<\/strong> bash<\/p>\n<p>&nbsp;<\/p>\n<p>To get the ip of the container:<\/p>\n<p style=\"padding-left: 30px;\">4304c34d368e:\/ # ifconfig<br \/>\neth0 Link encap:Ethernet HWaddr 02:42:AC:11:00:02<br \/>\ninet addr:172.17.0.2 Bcast:0.0.0.0 Mask:255.255.0.0<\/p>\n<p>To connect from a client to your container OA system you can expose ports from the container to the docker host (by using -p &lt;source-port&gt;:&lt;destination-port&gt; option at docker run&#8230;) or you may want\u00a0to add a route to the bridged container network, in my case the bridged network is 172.17.0.0. On a Windows client you can add a route (192.168.1.115 is my Docker-Host-Ip):<\/p>\n<p>route add 172.17.0.0 mask 255.255.255.0 192.168.1.115<\/p>\n<p>for\u00a0linux:\u00a0route add -net 172.17.0.0 netmask 255.255.255.0 gw 192.168.1.115<\/p>\n<p>Then you are able to ping your docker container network 172.17.0.2 from your client network (eg. 192.168.1.x) and so you are able to connect a WinCC OA client to the docker container project.<\/p>\n<p>To start the WinCC OA console or the project administration enter the container (as shown before) and set\u00a0the DISPLAY variable to your client (where you have to run a X-Window-System) and then you can start the console &#8220;startConsole&#8221;&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I pushed a docker image for WinCC OA to the docker hub. docker pull vogler\/winccoa It is based on opensuse and WinCC OA 3.13 P009. At the first startup it will ask for a system number and the system name. root@debian1:~# docker run -t -i &#8211;name=oa1 vogler\/winccoa startup Please enter your desired system name and &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=647\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Docker Image for WinCC OA&#8230;<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-647","post","type-post","status-publish","format-standard","hentry","category-wincc-oa"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=647"}],"version-history":[{"count":7,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/647\/revisions"}],"predecessor-version":[{"id":654,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/647\/revisions\/654"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}