Docker 17.12.0-CE running under Centos 7.3
I am very new to docker however I am having a difficult issue with COPY.
I have a very simple dockerfile that I am using to setup a nagios instance:
FROM jasonrivers/nagios:latest
EXPOSE 8080
WORKDIR /etc/postfix
COPY main.cf main.cf
COPY master.cf master.cf
Every time I exec into the container and view the contents of the “main.cf” file one particular line is not getting copied correctly.
Source File contains:
relayhost = [smtp.sparkpostmail.com]:587
When I view it in the running container:
relayhost =
I have even tried modifying the line and removed the ‘[]’
and then rebuilding the image but the running container still ends up with the same problem. I can change any other line, add comments,etc and they get reflected correctly. I feel like I am missing something simple here.