For performance reasons it is recommended to allocate 6GB of memory to you Docker. In the preference pane go to Advanced and allocate 6GB for the memory. Click Apply & Restart to apply the changes.
You also need to create and share some folders. In the terminal type: mkdir /opt/jboss /app
On File Sharing Click + and add /opt/jboss and /app.
If you do not run Docker as administrator, give Docker write permissions to /opt/jboss. This can be done with: chmod 777 /opt/jboss