$ docker network create \
--driver bridge \
bridge_t1
The default VCL configuration requires a host named httpd_1
.
$ docker rm -f httpd.1 &> /dev/null; \
docker run \
--detach \
--name httpd.1 \
--network bridge_t1 \
--network-alias httpd_1 \
jdeathe/centos-ssh-apache-php:3.1.0
Older versions of Docker may require --link httpd_1
.
$ docker rm -f varnish.1 &> /dev/null; \
docker run \
--detach \
--tty \
--name varnish.1 \
--publish 80:80 \
--network bridge_t1 \
jdeathe/centos-ssh-varnish:2.2.0
$ curl -I http://localhost/