Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
fix: Command args moved to entrypoint (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
lholota authored Aug 2, 2022
1 parent 4c93ec8 commit 6706af4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ EXPOSE 67/udp
VOLUME /leases
VOLUME /config

ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "/usr/sbin/dhcpd", "-4", "-f", "-cf", "/config/dhcpd.conf", "-lf", "/leases/dhcpd.leases", "--no-pid" ]
ENTRYPOINT [ "/entrypoint.sh", "/usr/sbin/dhcpd", "-4", "-f", "-cf", "/config/dhcpd.conf", "-lf", "/leases/dhcpd.leases", "--no-pid" ]
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
volumes:
- ./example:/config
cap_add:
- "NET_RAW" # Required for LPF
- "NET_RAW" # Required for LPF socket
- "CAP_NET_BIND_SERVICE" # Required to bind on port < 1024
cap_drop:
- "ALL"
Expand Down
3 changes: 0 additions & 3 deletions root/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ if [ ! -f "/leases/dhcpd.leases" ]; then
chmod 0777 /leases/dhcpd.leases
fi

whoami
ls -l /leases

exec "$@"

0 comments on commit 6706af4

Please sign in to comment.