Skip to content

Commit

Permalink
Dockerfile: remove container's /etc/dhcpcd.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani authored and patrickelectric committed Sep 26, 2024
1 parent fb0c5b8 commit 9c33c49
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ set -e
# Setup user
useradd -m -u 1000 -G dialout blueos

# Remove /etc/dhcpcd.conf if it exists inside the docker
# This is to prevent an awkward behavior where docker doesnt find the file
# on the host system and creates a folder instead, but tries to mount the folder
# on top of the existing file inside the docker.
# This allows docker to actually create a folder, which we handle in networksetup.py
rm -f /etc/dhcpcd.conf

EOF

# Start
Expand Down

0 comments on commit 9c33c49

Please sign in to comment.