marco0

Hello, I'm trying to run multiple OpenPLC instances as docker containers. 

Created using the following dockerfile:

 

FROM ubuntu:18.04

USER root

WORKDIR /root/

RUN apt-get update && \

    apt-get -y install git python-pip autoconf bison build-essential pkg-config bison flex autoconf automake libtool make git python2.7 python-pip sqlite3 cmake sudo

RUN pip install flask flask-login pyserial pymodbus

WORKDIR /home/

RUN git clone https://github.com/thiagoralves/OpenPLC_v3.git

WORKDIR /home/OpenPLC_v3/

RUN sudo ./install.sh linux

RUN mkdir /home/OpenPLC_v3/scripts

#COPY mbconfig.cfg /home/OpenPLC_v3/scripts

COPY run.sh /home/OpenPLC_v3/

#COPY openplc.py /home/OpenPLC_v3

RUN sudo chmod +x run.sh

COPY PLC1.st /home/OpenPLC_v3/scripts

EXPOSE 502

EXPOSE 6668/udp

EXPOSE 8080

CMD ["/home/OpenPLC_v3/run.sh"]

If I run them locally on my machine I've no issues.

But when I try to run them on a docker server installed on a Openstack virtual machine with multiple interfaces, by clicking the "run PLC" button, OpenPLC does a quick startup routine and then goes back to the "not running" state

Reply 0 0
marco0

I've managed to capture the stdout, the following image is what happens when you press "Start PLC"
aa11.png 
Reply 0 0
Reply