Public | Automated Build

Last pushed: a day ago
Short Description
squid3 cache service container running on debian sid amd64
Full Description




about minimum2scp/squid image

start container

docker run -d -p 3128:3128 minimum2scp/squid

and then use from localhost:

export http_proxy=http://127.0.0.1:3128
curl http://example.com/

ssh login to container

ssh login to container:

ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no debian@<container IP address>

or use published port:

ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p <published ssh port> debian@localhost
  • user "debian" is available
  • password is "debian"
  • user "debian" can use sudo command without password
  • id debian: uid=2000(debian) gid=2000(debian) groups=2000(debian),4(adm),27(sudo)

processes

UID        PID  PPID  C STIME TTY      STAT   TIME CMD
root         1     0  0 23:50 ?        Ss     0:00 init [2]
root       412     1  0 23:50 ?        Ssl    0:00 /usr/sbin/rsyslogd
root       437     1  0 23:50 ?        Ss     0:00 /usr/sbin/cron
root       471     1  0 23:50 ?        Ss     0:00 /usr/sbin/squid -YC -f /etc/squid/squid.conf
proxy      473   471  0 23:50 ?        S      0:00  \_ (squid-1) -YC -f /etc/squid/squid.conf
proxy      486   473  0 23:50 ?        S      0:00      \_ (logfile-daemon) /var/log/squid/access.log
proxy      492   473  0 23:50 ?        S      0:00      \_ (pinger)
root       482     1  0 23:50 ?        Ss     0:00 /usr/sbin/sshd
root       493   482  0 23:50 ?        Ss     0:00  \_ sshd: debian [priv]
debian     495   493  0 23:50 ?        S      0:00      \_ sshd: debian@pts/0
debian     496   495  0 23:50 pts/0    Ss     0:00          \_ -bash
debian     501   496  0 23:50 pts/0    R+     0:00              \_ ps -ef fw

ports

  • TCP/22: sshd
  • TCP/3128: squid
  • TCP/3129: squid (transparent)
Docker Pull Command
Owner
minimum2scp
Source Repository

Comments (6)
ekhoury2000
6 months ago

i tried docker run -d -p 3128:3128 minimum2scp/squid and tried downloading a file after adding proxy to my browser but did not work (downloaded the same file twice from the internet), any guides? Also, how can i redirect the cache location to a shared directory instead of local directory? i want to use this server as transparent proxy. Thanks in advance

bravepickle
9 months ago

"export http_proxy=htpt://127.0.0.1:3128" - there is an error in docs. It should be http://127.0.0.1:3128

minimum2scp
a year ago

tak9, sorry for late response.

is possible to using small linux distribution? this is to heavy.
is possible to add block list
ads-block list?

I like to use debian, so I won't change the base image.
You should create your own squid image. Sorry.

minimum2scp
a year ago

gispark, sorry for late response.

I can login to contaier, like this:

% docker run -d --name squid minimum2scp/squid:latest
% docker inspect -f '{{ .NetworkSettings.IPAddress }}' squid
172.17.0.2
% ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no debian@172.17.0.2
Warning: Permanently added '172.17.0.2' (ECDSA) to the list of known hosts.
debian@172.17.0.2's password: # <-- password is "debian"
Linux 41fb12eeea67 4.8.0-1-amd64 #1 SMP Debian 4.8.5-1 (2016-10-28) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian@41fb12eeea67:~$
tak9
a year ago

is possible to using small linux distribution? this is to heavy.

is possible to add block list
ads-block list?

gispark
a year ago

using password "debian" can't login to docker.as:

Permission denied, please try again.