tuto2: Add machine hostname in /etc/hosts to avoid lookup failures
This commit is contained in:
parent
71fb309c33
commit
8a2405e508
@ -26,7 +26,8 @@ RUN echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/
|
|||||||
RUN rm -rf /etc/init.d/ && \
|
RUN rm -rf /etc/init.d/ && \
|
||||||
mkdir /overlay && \
|
mkdir /overlay && \
|
||||||
ln -sf /init /sbin/init && \
|
ln -sf /init /sbin/init && \
|
||||||
ln -sf /lib/systemd/system/systemd-netwkord.service /etc/systemd/system/multi-user.target.wants/systemd-networkd.service
|
ln -sf /lib/systemd/system/systemd-netwkord.service /etc/systemd/system/multi-user.target.wants/systemd-networkd.service && \
|
||||||
|
sed '/127.0.0.1/s/$/adlin2/' /etc/hosts
|
||||||
|
|
||||||
COPY default.script /etc/udhcpc/default.script
|
COPY default.script /etc/udhcpc/default.script
|
||||||
COPY issue /etc/issue
|
COPY issue /etc/issue
|
||||||
|
Reference in New Issue
Block a user