дай свой Dockerfile, я тебе сделаю)
FROM registry....:0.0.3
RUN set -ex; \
{ \
echo "#!/bin/bash"; \
echo "set -e"; \
echo "echo 'mailbot.k8s.webdevtest' > /etc/hostname"; \
echo "CURRENT_IP=\$(cat /etc/hosts | tail -1 | awk '{print $1}')"; \
echo "echo '127.0.0.1 localhost' > /etc/hosts"; \
echo "echo '\$CURRENT_IP mailbot.k8s.webdevtest' » /etc/hosts"; \
echo "cd /etc/mail/"; \
echo "make"; \
echo "make restart"; \
echo "exec '\$@'"; \
} | tee /home/start.sh
RUN set -xe; \
chmod 700 /home/start.sh; \
echo "define(\`SMART_HOST', \`mx-relay.....ru')dnl" » /etc/mail/sendmail.mc; \
echo "define(\`confDOMAIN_NAME', \`mailbot.k8s.webdevtest')dnl" » /etc/mail/sendmail.mc; \
echo "define(\`confTO_IDENT', \`0')" » /etc/mail/sendmail.mc; \
echo "....ru smtp:[mx-relay.....ru]" > /etc/mail/mailertable; \
echo ". smtp:[mx-relay.....ru]" » /etc/mail/mailertable; \
echo "....ru RELAY" » /etc/mail/access; \
echo "172.17. RELAY" » /etc/mail/access; \
echo "127.0. RELAY" » /etc/mail/access; \
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
ENTRYPOINT ["/home/start.sh"]