更改/etc/hosts配置文件

This commit is contained in:
yangyu 2018-07-28 16:19:20 +08:00
parent 243a69e932
commit a496a8bebf
2 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,6 @@ COPY start.sh /
RUN chmod 777 /start.sh
EXPOSE 22 50070 8020 8088 8042
EXPOSE 22 50070 8020 8088 8042 8030 8031 8032 8033
CMD ["/start.sh"]

View File

@ -3,4 +3,6 @@
\cp /conf/* /usr/local/$HADOOP_VERSION/etc/hadoop
echo "127.0.0.1 localhost" > /etc/hosts
/usr/sbin/sshd -D