-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERR_ACCESS_DENIED: No access by default #59
Comments
Yes, that's super confusing. WTF? I need clear message that it is unusable by default. |
Here is how I copied out the default config file from the image and modified it to allow for all # Assuming we are running a non-configured / default Squid container as `squid`
docker run --name squid -d sameersbn/squid:3.5.27-2
docker cp squid:/etc/squid/squid.conf ./squid.conf.default
sed 's/http_access deny all/http_access allow all/' ./squid.conf.default > ./squid.conf You'd then just need to mount this config file as a volume when running the container |
Thanks @mt-kelvintaywl, thats a great way to do it. I wanted to use this in a custom Docker image without having to copy along the FROM sameersbn/squid:3.5.27-2
RUN cp /etc/squid/squid.conf /etc/squid/squid.conf.default && \
sed 's/http_access deny all/http_access allow all/' \
/etc/squid/squid.conf.default > /etc/squid/squid.conf |
I've run container with
docker run sameersbn/squid
command, noted the IP withdocker inspect X
.However, when I'm trying to test with
curl
it readsERR_ACCESS_DENIED
.Is it possible to configure container to have the allow access by default? Or what's the easiest way to achieve that?
The text was updated successfully, but these errors were encountered: