I have a docker image from a vendor, for a piece of proprietary software that our team needs to integrate with. I have the image in a private dockerhub repository, and I can pull it and run it locally with no problem:
$ docker run -d --name mediaflux2 --publish 8888:8888 --mac-address 02:42:ac:11:00:02 eosadler/tigerdata
5c6aec8427f3cae149bf035c57fe2405d11c1885536fcc21718b7674be9b88da
$ curl 0.0.0.0:8888
<html>
<head>
<title>Mediaflux WWW portal</title>
I would expect to be able to do the same thing in my CI build, but it doesn’t work:
circleci@8e622a3afdea:~$ docker run -d --name mediaflux2 --publish 8888:8888 --mac-address 02:42:ac:11:00:02 eosadler/tigerdata
15d9483d6ca426343e4ace1db71395686d2172d1a9cb13c301e62c19f0e6a72b
circleci@8e622a3afdea:~$ curl 0.0.0.0:8888
curl: (7) Failed to connect to 0.0.0.0 port 8888 after 0 ms: Connection refused
circleci@8e622a3afdea:~$ curl localhost:8888
curl: (7) Failed to connect to localhost port 8888 after 0 ms: Connection refused
I can get it to run if I put the whole thing in a docker-compose, but that makes my CI build go from ~3 minutes to > 20 minutes, which won’t work for us.
Any ideas for me? Thanks in advance!