Jan 4, 2018

How to DOCKER BUILD/Run PAYARA JAVA EE SERVER

docker search payara

docker pull payara/server-full


To start a new Docker container based on the Payara image we have just downloaded
docker run -it -p 8080:8080 -p 4848:4848 payara/server-full /bin/bash

[email protected]:/opt/payara41/glassfish/bin/asadmin status
Remote server does not listen for requests on [localhost:4848]. Is the server up?
No such local command: status.  Unable to access the server to execute the command remotely.  Verify the server is available.
Command status failed.
[email protected]:/opt/payara41/glassfish/bin/asadmin start-domain payaradomain
Waiting for payaradomain to start .......................
Successfully started the domain : payaradomain
domain  Location: /opt/payara41/glassfish/domains/payaradomain
Log File: /opt/payara41/glassfish/domains/payaradomain/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.