- Pull and Run the Squid Container Run the following command in your terminal. This uses the popular ubuntu/squid image.
docker run -d --name squid-local -e 'TZ=UTC' -p 3128:3128 ubuntu/squid:latest-d: Runs in detached mode (background).
-p 3128:3128: Maps port 3128 on your machine to port 3128 in the container (Squid's default port).