Ubuntu用docker搭dvwa时卡在==> /var/log/apache2/other_vhosts_access.log <==不动

root@sn-virtual-machine:/home/sn# docker run --rm -it -p 80:80 vulnerables/web-dvwa
[+] Starting mysql...
[ ok ] Starting MariaDB database server: mysqld ..
[+] Starting apache
[....] Starting Apache httpd web server: apache2AH00558: 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
. ok
==> /var/log/apache2/access.log <==

==> /var/log/apache2/error.log <==
[Thu Jan 10 16:32:40.366684 2019] [mpm_prefork:notice] [pid 306] AH00163: Apache/2.4.25 (Debian) configured -- resuming normal operations
[Thu Jan 10 16:32:40.366794 2019] [core:notice] [pid 306] AH00094: Command line: '/usr/sbin/apache2'

==> /var/log/apache2/other_vhosts_access.log <==


根据提供的信息,看起来DVWA容器已启动成功并正在运行。据我了解,apache2可以在/var/log/apache2/other_vhosts_access.log中记录其他虚拟主机的访问日志,但是如果你的网络配置中没有设置其他虚拟主机,则可能不会生成该日志文件。因此,你可以尝试检查你的网络配置,或者查看其他日志文件,如/var/log/apache2/access.log和/var/log/apache2/error.log,以检查是否有其他问题导致容器无法访问。此外,你可以尝试重新启动apache服务,看看是否可以解决问题。希望这可以帮助你解决问题。