Wrote a tutorial
https://developer.mulesoft.com/tutorials-and-howtos/anypoint-flex-gateway-connected-mode-docker-container/