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 in Docker by Charles
• 230 points
513 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 28 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,550 points
230 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
820 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
• 6,980 points
1,605 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
• 51,970 points
790 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
• 51,970 points

edited Jan 16 by Kalgi 17,643 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
• 6,980 points
238 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 in Docker by Vishal
• 220 points
4,313 views
0 votes
1 answer
0 votes
1 answer