Здравствуйте,помогите пожалуйста понять в чём суть ошибки.Заранее благодарен.
Error:
Starting django-apache2 ... done
Attaching to django-apache2
django-apache2 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.2. Set the 'ServerName' directive globally to suppress this message
Error
dockerfile:
FROM ubuntu
RUN apt-get update
RUN apt-get install -y apt-utils vim curl apache2 apache2-utils
RUN apt-get -y install python3 libapache2-mod-wsgi-py3
RUN ln /usr/bin/python3 /usr/bin/python
RUN apt-get -y install python3-pip
RUN rm /usr/bin/pip3 /usr/bin/pip
RUN ln -s /usr/bin/pip3 /usr/bin/pip
RUN python -m pip install --upgrade pip
RUN pip install django ptvsd
ADD ./demo_site.conf /etc/apache2/sites-available/000-default.conf
RUN echo "ServerName localhost" >> /etc/apache2/demo_site.conf
RUN cat /etc/apache2/sites-enabled/000-default.conf
RUN service apache2 restart
EXPOSE 80 3500
CMD ["apache2ctl", "-D", "FOREGROUND"]
demo_site.conf
WSGIPythonPath /var/www/html/django_demo_app/demo_site
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot /var/www/html/django_demo_app
Alias /static "/var/www/html/django_demo_app/demo_site/static"
WSGIScriptAlias / /var/www/html/django_demo_app/demo_site/demo_site/wsgi.py
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>