Skip to content

Instantly share code, notes, and snippets.

@bdelacretaz
Created July 5, 2019 11:09
Show Gist options
  • Save bdelacretaz/0dd712fb02797c45742f88cf1d5ecc3d to your computer and use it in GitHub Desktop.
Save bdelacretaz/0dd712fb02797c45742f88cf1d5ecc3d to your computer and use it in GitHub Desktop.
Testing systemd-socket-activate
# Example Dockerfile which uses systemd-socket-activate
# to start an executable when a socket connection is made.
FROM ubuntu:bionic
RUN apt-get update
RUN apt-get install -y systemd
EXPOSE 8080
CMD ["systemd-socket-activate", "-l 8080", "--inetd", "-a", "date"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment