From 215e335ea6a142d0baf70f5e65e859032f222f39 Mon Sep 17 00:00:00 2001 From: Tim Bowden Date: Fri, 27 Jul 2018 15:29:12 +0800 Subject: [PATCH 1/2] Updated README.md quickstart info: squid3 Changed /etc/squid/, /var/log/squid/, /var/spool/squid/ references to squid3 in line with current implementation. --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5f64908..5b7b99e 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Start Squid using: ```bash docker run --name squid -d --restart=always \ --publish 3128:3128 \ - --volume /srv/docker/squid/cache:/var/spool/squid \ + --volume /srv/docker/squid/cache:/var/spool/squid3 \ sameersbn/squid:3.5.27 ``` @@ -81,13 +81,13 @@ You can customize the launch command of the Squid server by specifying arguments ```bash docker run --name squid -it --rm \ --publish 3128:3128 \ - --volume /srv/docker/squid/cache:/var/spool/squid \ + --volume /srv/docker/squid/cache:/var/spool/squid3 \ sameersbn/squid:3.5.27 -h ``` ## Persistence -For the cache to preserve its state across container shutdown and startup you should mount a volume at `/var/spool/squid`. +For the cache to preserve its state across container shutdown and startup you should mount a volume at `/var/spool/squid3`. > *The [Quickstart](#quickstart) command already mounts a volume for persistence.* @@ -105,8 +105,8 @@ Squid is a full featured caching proxy server and a large number of configuratio ```bash docker run --name squid -d --restart=always \ --publish 3128:3128 \ - --volume /path/to/squid.conf:/etc/squid/squid.conf \ - --volume /srv/docker/squid/cache:/var/spool/squid \ + --volume /path/to/squid.conf:/etc/squid3/squid.conf \ + --volume /srv/docker/squid/cache:/var/spool/squid3 \ sameersbn/squid:3.5.27 ``` @@ -138,13 +138,13 @@ ENV http_proxy=http://172.17.0.1:3128 \ ## Logs -To access the Squid logs, located at `/var/log/squid/`, you can use `docker exec`. For example, if you want to tail the access logs: +To access the Squid logs, located at `/var/log/squid3/`, you can use `docker exec`. For example, if you want to tail the access logs: ```bash -docker exec -it squid tail -f /var/log/squid/access.log +docker exec -it squid tail -f /var/log/squid3/access.log ``` -You can also mount a volume at `/var/log/squid/` so that the logs are directly accessible on the host. +You can also mount a volume at `/var/log/squid3/` so that the logs are directly accessible on the host. # Maintenance From fed311f469a8c8f9ac10c28815b7d58f0ea95b87 Mon Sep 17 00:00:00 2001 From: Tim Bowden Date: Fri, 27 Jul 2018 15:30:28 +0800 Subject: [PATCH 2/2] Update docker-compose.yml Changed volume mount point to squid3 instead of squid --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1b1b286..40ecde5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,5 +3,5 @@ Squid: ports: - "3128:3128" volumes: - - /srv/docker/squid/cache:/var/spool/squid + - /srv/docker/squid/cache:/var/spool/squid3 restart: always