A very simple Docker image for running Varnish with quite limited configuration
options. Please note that it is experimental and shouldn't be used in production.
Build & Run
$ docker build -t varnish . $ docker run \ -d \ -p 80:80 \ -e VARNISH_PORT=80 \ -e VARNISH_BACKEND_HOST=127.0.0.1 \ -e VARNISH_BACKEND_PORT=8080 \ --name my-varnish \ varnish:latest
This image is based on newsdev/docker-varnish.
Its original license is reproduced below:
Copyright (c) 2015 The New York Times Company Licensed under the Apache License, Version 2.0 (the "License"); you may not use this library except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
- The default build version is
- The storage backend is completely configurable by setting
VARNISH_STORAGE_BACKEND, but defaults to
malloc,100mas it did before.
default.vclis automatically generated based on the
environment variables, so that users do not have to derive a custom image
to use it.
Docker Pull Command