--net-bridge: This connects the container to a bridge network, where the host machine is the gateway. Helps if the container needs to connect to other containers. We will be connecting to another container that will host our database.
9090:8080: This will connect the 8080 port of the container to the 9090 port of the host machine.
<moas-directory-on-host>: The host directory to map to container’s. This will help with data retention as it will share the specified directory. This directory will contain the entire miniOrange deployment. This will come in handy if something needs to be changed later on.
--name moas: This can be any string. This will be a name given to the docker container. This will be used to connect to the docker container later.
The image will by default start the Authentication Service. You may connect to your container anytime.
Connecting to your docker container
You can connect with the container using the value used with --name parameter that was specified while running the docker container.