Creating a container to run the Domino trial server
After you have set up a new Domino trial server using a temporary container, create the container to run the Domino server.
About this task
- Before you complete this procedure, decide what execution mode you want to use to run the container, interactive or detached. Interactive mode allows yout to interact with the Domino server directly through the Docker terminal window. You should always run a container in the specified mode. For more information, see Docker run command arguments.
- For a description of each port number specified with the
docker run -p
argument, see Docker run command arguments. - If your Domino server ID is password-protected and you plan to run your
container in detached mode (-d), before you complete this procedure, create
a secrets file to store the password. The file must be accessible by your
Docker container. Use the docker cp command to copy the
file to the Docker container. The Domino server reads the password from the
secrets file. The file can be created manually or through orchestration
software such as Docker Swarm or Kubernetes. For more information, see their
documentation:
- Docker: Manage sensitive data with Docker secrets
- Kubernetes: Secrets
Procedure
To create and start the container, issue the run command that applies to your
situation:
To use interactive mode:
docker run -it --name <container name> -v <docker volume name>:<data directory> -v <full path to license key file>:/local/notesdata/trial_account.txt --hostname <your_hostname> --cap-add=SYS_PTRACE --env TZ=UTC --security-opt seccomp=unconfined <-p HostPort:ContainerPort> <image>
For
example:
docker run -it --name domino -v notesdata:/local/notesdata -v /tmp/trial_account.txt:/local/notesdata/trial_account.txt --hostname docker.renovations.com --cap-add=SYS_PTRACE --env TZ=UTC --security-opt seccomp=unconfined -p 8585:8585 -p 1352:1352 -p 110:110 -p 143:143 -p 25:25 -p 389:389 -p 443:443 -p 80:80 -p 8080:8080 -p 60148:60148 -p 63149:63149 -p 3003:3003 domino-docker:V120_06102021prodtrial-all
Tip: -it can be omitted. A container runs in
interactive mode by default.
To use detached mode with a secrets
file that contains a password for the server ID
file:docker run -d --name <container name> -v <docker volume name>:/local/notesdata -v /<full path to license key file>:/local/notesdata/trial_account.txt --hostname <hostname> --cap-add=SYS_PTRACE --env TZ=UTC --env secretpwfile=<path to secrets file> <-p HostPort:ContainerPort> <image>
For
example:
docker run -d --name domino -v notesdata:/local/notesdata -v /tmp/trial_account.txt:/local/notesdata/trial_account.txt --hostname docker.renovations.com --cap-add=SYS_PTRACE --env TZ=UTC --env secretpwfile=/local/notesdata/secret/mysecret.sth -p 8585:8585 -p 1352:1352 -p 110:110 -p 143:143 -p 25:25 -p 389:389 -p 443:443 -p 80:80 -p 8080:8080 -p 60148:60148 -p 63149:63149 -p 3003:3003 domino-docker:V120_06102021prodtrial-all
To
use detached mode without a secrets file:
docker run -d --name <container name> -v <docker volume name>:/local/notesdata -v /<full path to license key file>:/local/notesdata/trial_account.txt --hostname <hostname> --cap-add=SYS_PTRACE --env TZ=UTC <-p HostPort:ContainerPort> <image>
For
example:
docker run -d --name domino -v notesdata:/local/notesdata -v /tmp/trial_account.txt:/local/notesdata/trial_account.txt --hostname docker.renovations.com --cap-add=SYS_PTRACE --env TZ=UTC -p 143:143 -p 25:25 -p 389:389 -p 443:443 -p 80:80 -p 8080:8080 -p 60148:60148 -p 63149:63149 -p 3003:3003 domino-docker:V120_06102021prodtrial-all
Results
The Domino trial server container is created and the Domino server starts. For information on common Docker commands, including stopping and starting a container, see Useful Docker commands in the main Domino on Docker documentation.