Can STAF work in docker container?
I started a STAF instance in docker container, but I can't ping it from docker host and any remote host.
It only work if I setup a docker swamp and ping it from anothr docker container within the same swamp network.
Any glue to configure the STAF or docker to allow the STAF reachable from remote host.
I've mapped all the require port for STAF and we are using version 3.4.22 in Centos 7.
Your help would be greatly appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I haven't tried it. There's nothing specific for docker. TCP/IP communication must work between two STAF endpoints (no firewall blocking communication via the STAF TCP/IP port you are using, e.g. 6500, 6550). The two STAF endpoints must be able to ping each other (a regular ping by IP address or host name, e.g. ping client1.company.com). Are you getting an RC 16 when submitting a STAF service request?
Hello,
I started to play with Docker too, it would be very useful to have STAF as a container available on Docker hub, so we could download and use it from there.
Any plans related to this?
Regards,
Flaviano Flauber
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello, All,
it works on my side.hope it is helpful with below actions:
1. use host network instead of docker default
2. lanuch stafproc in container instead of "host" where lanuch the container.
3. add previledge permission in the docker run
4. mapping container tcp port out, maybe it works without this action. not tried yet.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can STAF work in docker container?
I started a STAF instance in docker container, but I can't ping it from docker host and any remote host.
It only work if I setup a docker swamp and ping it from anothr docker container within the same swamp network.
Any glue to configure the STAF or docker to allow the STAF reachable from remote host.
I've mapped all the require port for STAF and we are using version 3.4.22 in Centos 7.
Your help would be greatly appreciated.
I haven't tried it. There's nothing specific for docker. TCP/IP communication must work between two STAF endpoints (no firewall blocking communication via the STAF TCP/IP port you are using, e.g. 6500, 6550). The two STAF endpoints must be able to ping each other (a regular ping by IP address or host name, e.g. ping client1.company.com). Are you getting an RC 16 when submitting a STAF service request?
See the following sections in the STAF FAQ at http://staf.sourceforge.net/current/STAFFAQ.htm#d0e940:
Thanks for the reply, we did opened and mapped all the required ports.
We will troubleshoot further.
Hello Phang, were you able to solve the STAF communication in docker container?
Hello,
I started to play with Docker too, it would be very useful to have STAF as a container available on Docker hub, so we could download and use it from there.
Any plans related to this?
Regards,
Flaviano Flauber
hello, All,
it works on my side.hope it is helpful with below actions:
1. use host network instead of docker default
2. lanuch stafproc in container instead of "host" where lanuch the container.
3. add previledge permission in the docker run
4. mapping container tcp port out, maybe it works without this action. not tried yet.