It's my first Docker image, I put there my own bash script. This script uses the whois
command. After docker runs my script, I have some errors. Probably I made mistake on my dockerfile. Script works well on my ubuntu.
Should I add the /etc/services
file to my image?
Dockerfile:
FROM ubuntu
ADD ./ip_info /usr/src/ip_info
ADD ./ip_info /bin/ip_info
RUN apt-get update && apt-get -y install whois
RUN chmod +x /usr/src/ip_info
CMD ["/usr/src/ip_info"]
error:
getaddrinfo(whois.ripe.net): Servname not supported for ai_socktype
I fixed it by
RUN apt-get update && apt-get install -y --no-install-recommends ntp
to dockerfile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With