enter image description hereDockerfile build successfly, however, I used ocker run -it --hostname hadoop1 --name hadoop hadoop_v1.0 and there was a try `chown --help' for more information,I checked all the logs under /usr/local/hadoop/logs and they all reported an error,The container can also run normally
This is a dockerfile for building hadoop. The chown command is used in the dockerfile in the following places:enter image description here
RUN chmod 600 ${ROOT_HOME}/.ssh/config && \
chown root:root ${ROOT_HOME}/.ssh/config && \
chown root:root /etc/bootstrap.sh && \
chmod 700 /etc/bootstrap.sh && \
chmod +x $HADOOP_HOME/etc/hadoop/*-env.sh && \
adduser hdpuser && \
echo 'hdpuser:hdppassword' | chpasswd && \
usermod -aG wheel hdpuser && \
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers