<commit_before>usage:

```
docker run -d -p 3142:3142 minimum2scp/apt-cacher-ng
```

and then use locally:

```
sudo apt-get -o Acquire::http::Proxy=http://localhost:3142 update
sudo apt-get -o Acquire::http::Proxy=http://localhost:3142 upgrade
```
<commit_msg>apt-cacher-ng: update README.md<commit_after># about minimum2scp/apt-cacher-ng image

 * based on minimum2scp/baseimage (see https://github.com/minimum2scp/dockerfiles/tree/master/baseimage)
 * apt-cacher-ng package installed

## start container

```
docker run -d -p 3142:3142 minimum2scp/apt-cacher-ng
```

and then use from localhost:

```
sudo apt-get -o Acquire::http::Proxy=http://localhost:3142 update
sudo apt-get -o Acquire::http::Proxy=http://localhost:3142 upgrade
```

## 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 "<PASSWORD>"
 * 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 02:08 ?        Ss     0:00 init [2]  
apt-cac+    17     1  0 02:08 ?        Ss     0:00 /usr/sbin/apt-cacher-ng -c /etc/apt-cacher-ng pidfile=/var/run/apt-cacher-ng/pid SocketPath=/var/run/apt-cacher-ng/socket foreground=0
root        44     1  0 02:08 ?        Ssl    0:00 /usr/sbin/rsyslogd
root        69     1  0 02:08 ?        Ss     0:00 /usr/sbin/cron
root        80     1  0 02:08 ?        Ss     0:00 /usr/sbin/sshd
root        87    80  0 02:08 ?        Ss     0:00  \_ sshd: debian [priv]
debian      89    87  0 02:08 ?        S      0:00      \_ sshd: debian@pts/0
debian      90    89  0 02:08 pts/0    Ss     0:00          \_ -bash
debian      96    90  0 02:08 pts/0    R+     0:00              \_ ps -ef fww
```

## ports

| port         | process           | comment                                   |
|:-------------|:------------------|:------------------------------------------|
| TCP/22       | sshd              | invoked by init                           |
| TCP/80       | nginx             | disabled autostart                        |
| TCP/3142     | apt-cacher-ng     |                                           |
| TCP/9001     | supervisord       | disabled autostart                        |


{'fraction_non_alphanumeric': 0.14676034348165495, 'fraction_numerical': 0.06674473067915691, 'mean_word_length': 1.758880516684607, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6503237', 'n_tokens_mistral': 989, 'n_tokens_neox': 836, 'n_words': 222}