Domino Docker Cheat Sheet

Mindwatering Incorporated

Author: Tripp W Black

Created: 02/22/2019 at 11:47 AM

 

Category:
Linux
Docker

To use a local folder as the Docker Volume target for Domino add the following to your docker run command:
$ docker run ... -v /local/notesdata:/local/notesdata

To map container to host ports add the following to the docker run command:
$ docker run ... -p 1352:1352 -p 80:80 -p 25:25 -p 443:443 -p 8080:8080 -p 63148:63148 -p 63149:63149 -p 8585:8585 -p 389:389 -p 110:110 -p 143:143 -p 6500:6500 -p 6550:6550

To use the host time settings, add the following setting to map the container to the host localtime file:
$ docker run ... -v /etc/localtime:/etc/localtime

To add the hostname to use, add the following to your docker run command:
$ docker run ... --$MYFQHN
Note:
To use the above command, you must run an export command like this:
$ export MYHOSTNAME=`hostname`
$ export MYFQHN=`nslookup $MYHOSTNAME |grep Name | awk '{print $2}'`

View docker images:
$ docker images

View active (running) containers:
$ docker ps

View all (inactive and active/running) containers:
$ docker ps -a

To start an inactive container viewed above:
$ docker start <idhexstring>

To stop an active container:
$ docker stop <idhexstring>
or
$ docker stop <mycontainername>

To permanently remove an inactive container:
$ docker rm <idhexstrring>
or
$ docker rm <mycontainername>

To copy/save as a currently active container to a new container (e.g. because you made additions/upgrades or changes):
$ docker commit -m "The update notes go here for this version." -a "MyPersonalNameOrUserID" <idhexstring> <repositorynm/pathlocation>
Note:
- MyPersonalNameOrUserID is either your name or your login id
- idhextring is the existing container getting saved as a new one.
- Registrynm is a local or remote registory.

To pull down say a different OS to run in docker than say the current Ubuntu OS, so you can run something certified only on CentOS (e.g. Domino), you can do this:
$ docker pull centos
Note:
You then would install the domino image "on top", and create the Domino container.

View logs for a specific container:
$ docker logs <mycontainername>

Start a terminal command INSIDE the container:
$ docker exec -it <mycontainername> /bin/bash
Note: the "i" is interactive, and the "t" is the terminal session.



previous page

×