Docker ulimit and ServerName errors

+2 votes
I am receiving this error when starting a docker file.     Any ideas on how to resolve?

/usr/sbin/apachectl: 99: ulimit: error setting limit (Operation not permitted)
Setting ulimit failed. See README.Debian for more information.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
Jan 28, 2020 in Docker by Charles
• 230 points
3,588 views

1 answer to this question.

+2 votes
I have resolved the issue.  The resolution was to use RUN and not CMD, in the dockerfile, to update the /etc/apache2/apache.conf file with the following line.

"ServerName localhost"
answered Jan 29, 2020 by Charles
• 230 points
Hi! Can you share your dockerfile?
Hey @Yash, what requirement do you want your docker file to have?

Related Questions In Docker

0 votes
1 answer

Different file owner inside Docker container and in host machine Ask

Filesystems, at least in Unix- and Linux-like ...READ MORE

answered Jun 25, 2018 in Docker by Damon Salvatore
• 5,980 points
730 views
0 votes
1 answer

Different file owner inside Docker container and in host machine

Here is what you can try. Since ...READ MORE

answered Jun 27, 2018 in Docker by Atul
• 10,240 points
1,729 views
0 votes
1 answer

What is the difference between “expose” and “publish” in Docker?

Basically, you have three options: Neither specify EXPOSE nor -p -> ...READ MORE

answered Jul 18, 2018 in Docker by Nilesh
• 7,050 points
3,069 views
0 votes
1 answer

Ubuntu and updating Docker

Try this sudo sh -c "wget -qO- https://get.docker.io/gpg ...READ MORE

answered Aug 1, 2018 in Docker by Kalgi
• 52,360 points
3,162 views
+1 vote
1 answer

How to expose docker container's ip and port to outside docker host without port mapping?

you can accomplish this with IP aliasing ...READ MORE

answered Aug 2, 2018 in Docker by Kalgi
• 52,360 points

edited Jan 16, 2020 by Kalgi 30,888 views
0 votes
1 answer

Docker Swarm and self-signed Docker Registry

Add your self signed cert to the ...READ MORE

answered Aug 22, 2018 in Docker by Nilesh
• 7,050 points
987 views
0 votes
3 answers

What is the difference between a Docker image and a container?

Images are read-only templates that contain a ...READ MORE

answered Aug 10, 2020 in Docker by Vishal
• 260 points
6,142 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP