Created
July 5, 2019 11:09
-
-
Save bdelacretaz/0dd712fb02797c45742f88cf1d5ecc3d to your computer and use it in GitHub Desktop.
Testing systemd-socket-activate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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