Thanks Brady it works well.
I tried to put patch 7 on 501 because it has patch 6 - in order to upgrade to 502 all patches should be installed. Could not do it. I think it would be good idea to post along that how to install docker compose to post how to patch database, how to restore and how to upgrade on the docker.