Quantcast
Channel: Starting Varnish in a Docker Container fails for Unknown Reason - Server Fault
Viewing all articles
Browse latest Browse all 2

Starting Varnish in a Docker Container fails for Unknown Reason

$
0
0

I'm trying to get Varnish to run in a container, and I'm running into a weird issue. Things work fine if I log in, and then execute from a command line, but when I try to run it, using the same command, from Docker, it seems fails (I'm guessing it's not picking up the configs properly). Any ideas?

$ docker run --add-host "web:127.0.0.1" -ti my-proxy /bin/bashroot@f81c7d3ca1c6:/# /usr/sbin/varnishd -F -f /etc/varnish/default.vcl -a :80 -T localhost:6082 -S /etc/varnish/secret -s malloc,256mchild (24) StartedChild (24) said Child starts^CManager got SIGINTStopping Childroot@f81c7d3ca1c6:/# exit$ docker run --add-host "web:127.0.0.1" my-proxyWARNING: (-sfile) file size reduced to 0 (80% of available disk space)child (14) StartedPushing vcls failed:CLI communication error (hdr)Stopping ChildChild (14) died signal=6Child (14) Panic message: Assert error in smf_open_chunk(), storage_file.c line 403:  Condition(sz != 0) not true.thread = (cache-main)ident = Linux,4.0.9-boot2docker,x86_64,-sfile,-smalloc,-hcritbit,no_waiterBacktrace:  0x430935: /usr/sbin/varnishd() [0x430935]  0x44b2cf: /usr/sbin/varnishd() [0x44b2cf]  0x44b561: /usr/sbin/varnishd() [0x44b561]  0x449a57: /usr/sbin/varnishd(STV_open+0x27) [0x449a57]  0x42f74f: /usr/sbin/varnishd(child_main+0xbf) [0x42f74f]  0x44255f: /usr/sbin/varnishd() [0x44255f]  0x442e62: /usr/sbin/varnishd(MGT_Run+0x1d2) [0x442e62]  0x40c2c0: /usr/sbin/varnishd(main+0x930) [0x40c2c0]  0x7f9ccbc40ec5: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f9ccbc40ec5]  0x40c644: /usr/sbin/varnishd() [0x40c644]Child (-1) said Child startsChild cleanup completemanager dies

Here's the Docker command:

CMD ["/usr/sbin/varnishd", "-F", "-f", "/etc/varnish/default.vcl", "-a", ":80", "-T", "localhost:6082", "-S", "/etc/varnish/secret", "-s", "malloc,256m"]

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>