Install Docker
First, make sure you have docker installed. Please see https://docs.docker.com/engine/installation/ for instructions on installing docker on your system. After the install, don't forget to start docker.
Launch a PBS Pro container
Open up a terminal and run:
docker run -it --name pbs -h pbs pbspro/pbspro bash
This tells docker to launch a PBS Pro container with an interactive shell and name it pbs.
Docker will download the PBS Pro docker image from Docker Hub if the image is not already on your system.
You should now see a terminal window that looks like:
root@pbs ~
Edit PBS Pro configuration files
By default configuration the mom daemon will not start in the docker container. We can change this by editing the pbs configuration file.
vi /etc/pbs.conf
Change the value of PBS_SERVER to pbs and PBS_START_MOM to 1.
PBS_SERVER=pbs
...
PBS_START_MOM=1
Next, edit the mom configuration file by:
vi /var/spool/pbs/mom_priv/config
and change the value of $clienthost to pbs.
$clienthost pbs
Start PBS daemons
Run PBS Pro init script to start PBS daemons.
/etc/init.d/pbs start
Create a non-root user
By default, PBS Pro does not allow submitting job as root user. You will need a non-privileged user account.
useradd pbsuser
su pbsuser
cd
Submit a job
You should now be able to submit and view jobs.
qsub -- /bin/sleep 510
qstat
Feel free to try other PBS Pro commands and have fun.