Can I redistribute image containing GPLv2 and Apache2.0 software(packages) on Docker Hub?

I want to redistribute an image containing mysql and apache httpd. However, Mysql is GPLv2 licensed and Apache httpd is apache2.0 licensed. The two licenses are known to be incompatible. Do I have to keep license compatibility as well when i redistribute Docker Image on DockerHub?

Source: StackOverflow