You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Why should I run this image and not the other image(s) that already exist?** Good question! All the other images on the market that do exactly the same don’t do or offer these options:
30
30
31
31
> [!IMPORTANT]
32
-
>* This image runs the proxy part as a specific UID/GID (not root), all other images run everything as root
33
-
>* This image uses a single binary, all other images use apps like Nginx or HAProxy (bloat)
34
-
>* This image has no shell since it is 100% distroless, all other images run on a distro like Debian or Alpine with full shell access (security)
35
-
>* This image does not ship with any CVE and is automatically maintained via CI/CD, all other images mostly have no CVE scanning or code quality tools in place
36
-
>* This image has no upstream dependencies, all other images have upstream dependencies
37
-
>* This image exposes the socket as a UNIX socket and TCP socket, all other images only expose it via a TCP socket
32
+
>* This image runs the proxy part as a specific UID/GID (not root), most other images run everything as root
33
+
>* This image uses a single binary, most other images use apps like Nginx or HAProxy (bloat)
34
+
>* This image has no shell since it is 100% distroless, most other images run on a distro like Debian or Alpine with full shell access (security)
35
+
>* This image does not ship with any critical or high rated CVE and is automatically maintained via CI/CD, most other images mostly have no CVE scanning or code quality tools in place
36
+
>* This image is created via a secure, pinned CI/CD process and immune to upstream attacks, most other images have upstream dependencies that can be exploited
37
+
>* This image contains a proper health check that verifies the app is actually working, most other images have either no health check or only check if a port is open or ping works
38
+
>* This image exposes the socket as a UNIX socket and TCP socket, most other images only expose it via a TCP socket
39
+
>* This image works as read-only, most other images need to write files to the image filesystem
38
40
39
41
If you value security, simplicity and the ability to interact with the maintainer and developer of an image. Using my images is a great start in that direction.
40
42
@@ -43,7 +45,8 @@ If you value security, simplicity and the ability to interact with the maintaine
43
45
name: "traefik"# this is a compose example for Traefik
44
46
services:
45
47
socket-proxy:
46
-
image: "11notes/socket-proxy:2.1.1"
48
+
image: "11notes/socket-proxy:2.1.2"
49
+
read_only: true
47
50
user: "0:0"# make sure to use the same UID/GID as the owner of your docker socket!
48
51
volumes:
49
52
- "/run/docker.sock:/run/docker.sock:ro"# mount host docker socket, the :ro does not mean read-only for the socket, just for the actual file
@@ -119,9 +122,6 @@ networks:
119
122
# PARENT IMAGE 🏛️
120
123
> [!IMPORTANT]
121
124
>This image is not based on another image but uses [scratch](https://hub.docker.com/_/scratch) as the starting layer.
122
-
>
123
-
>The image consists of the following distroless layers that were added:
124
-
>* [11notes/distroless](https://github.com/11notes/docker-distroless/blob/master/arch.dockerfile) - contains users, timezones and Root CA certificates
125
125
126
126
127
127
@@ -133,4 +133,4 @@ networks:
133
133
# ElevenNotes™️
134
134
This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the [releases](https://github.com/11notes/docker-socket-proxy/releases) for breaking changes. If you have any problems with using this image simply raise an [issue](https://github.com/11notes/docker-socket-proxy/issues), thanks. If you have a question or inputs please create a new [discussion](https://github.com/11notes/docker-socket-proxy/discussions) instead of an issue. You can find all my other repositories on [github](https://github.com/11notes?tab=repositories).
0 commit comments