Payara 220.127.116.11 Docker images are now available for download from the docker public repository. Currently, there are 2 Docker images available for download.
One of these images provides the latest official release for Payara full profile and one for Payara micro. Both images are built on top of ubuntu and the latest Oracle JDK 8 version.
Furthermore, we have made available the Docker build files and Docker build image scripts for Payara 18.104.22.168 full profile on Oracle JDK 8 and Open JDK 8 along with Payara Micro 22.214.171.124 on our Payara Github account here. Instructions to build a new Payara Docker image and to create a new Payara Docker container are contained in each relevant readme file.
Figure 1: Payara Github Docker repository containing the relevant Docker build files.We will now discuss how you can access and run the Payara Docker instances from your own environment. I am assuming here you have Docker installed and setup within your own environment.Firstly open up a new terminal window and search for Payara Docker images in the Docker public repository by following command as in Figure 2 below:
sudo docker search payara
We now need to download the relevant Payara Docker image from this repository by executing the following command as in Figure 3 below:
sudo docker pull payaradocker/payara-full:126.96.36.199.oraclejdk8
If you wish to download the Payara micro 188.8.131.52.1 image then execute this command as in Figure 4:
sudo docker pull payaradocker/payara-micro:184.108.40.206.micro.oraclejdk8
sudo docker run -i -t payaradocker/payara-micro:220.127.116.11.micro.oraclejdk8 /bin/bash
To start a new Docker container based on the Payara full image we have just downloaded, we execute the command below as per Figure 5. The Payara Docker container will now be started and you will be taken by default to the Payara bin directory to allow you to administer Payara.
sudo docker run -i -t payaradocker/payara-full:18.104.22.168.oraclejdk8 /bin/bashFigure 6 shows the login screenshot for the Payara DAS console which is accessed from your host machine’s browser. You should note here that I am using the domain named “payaradomain” which is bundled with Payara 22.214.171.124 which has secure-admin enabled by default for the DAS. Since I wish to access the DAS from my host machine, secure-admin has to be enabled. The username and password to login into the DAS console for the domain payardomain is: admin/glassfish
Figure 2: Search results for Payara Docker images in the Docker public repository.
Figure 3: Download Payara Full Profile Docker Image
Figure 4: Download Payara Micro Docker Image.
Figure 5: Run the Docker image and start the DAS for the domain named payaradomain.
Figure 6: The Payara DAS console login page from the host machine browser.