Docker with nginx install ending up with 301 error

You should see log lines in mm.access.log, but in fact, your requests are not hitting this target but are being logged in the default nginx access.log, which is strange and the requests are also all coming from your local system 172.22.0.1.
Are you sure you didn’t tinker with the nginx configuration or settings and that this nginx is the foremost proxy server listening on port 443 on this system? To me it looks like the requests on port 443 are not even reaching this system which is very strange.

Please check what process ID is running on port 443 on your host and verify that it’s actually pointing to the internal container IP of your nginx container (which should be 172.22.0.4 at the moment):

root@host:~# lsof -i :443
COMMAND       PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
docker-pr 2147651 root    4u  IPv4 25458799      0t0  TCP *:https (LISTEN)
docker-pr 2147657 root    4u  IPv6 25458067      0t0  TCP *:https (LISTEN)
root@host:~# ps ax | grep 2147651
2147651 ?        Sl     0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 443 -container-ip 192.168.176.4 -container-port 443
2148576 pts/0    S+     0:00 grep 2147651