trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ezko <>
Subject ATS running inside docker
Date Tue, 02 Jan 2018 17:11:59 GMT
i'm trying to run ATS 7.1 inside a docker
my entry point is:

ENTRYPOINT ["/bin/bash"]
CMD ["-c","traffic_cop"]

which seems OK because traffic_cop seems to run in the foreground , so the
container can be monitored for orchestration. Is there a better entry point
for running ATS ? 

my remap file:
map http://localhost:8080/cache/ http://{cache}
map http://{cache} is an inner IP which the container instance got (it's not

My problem is with the port mapping. 

When running in the default bridge mode with published ports for example:

docker run -d --name ats7.1 -e TS_ROOT='/' -p 7070:8080 -t centos_ats_7.1

docker port ats7.1
8080/tcp ->

using the IP works (because i explicitly added a remap rule):

but using the port mapping doesn't work
curl http://localhost:7070/cache/

I'm getting:
status 404 (Not Found on Accelerator) for 'http://localhost/cache/'

thanks in advance for any help.

Sent from:

View raw message