Skip to content

Configuration

David Lee edited this page Jan 24, 2017 · 7 revisions

General Configuration


The default configuration of Docker is intended for simplicity of the ‘out of the box’ experience and occasional general purpose use. To run MarkLogic, particularly clusters, simply and efficiently requires some customization. The builds and scripts in the ml-docker repo assume a convention of configuration, particularly networking.

Installation

Initial Testing

environment variables

Minimum should set DOCKER_HOST to the URL to your docker engine, even if its local. Use the port configured in docker.conf * port 2376 is the default for SSLS/TLS * port 2375 is the default for non-TLS

DOCKER_HOST=tcp://localhost:2376


# If using TLS set the following 
DOCKER_TLS_VERIFY=1
DOCKER_CERT_PATH=/home/dlee/.docker/machine/machines/default

# if not usign TLS =
DOCKER_TLS_VERIFY=0

Verify your configuration by restarting docker and running a symple command. For systemctl based systems:

systemctl daemon-reload
systemctl stop docker
ps -eaf | grep docker  ## Make sure its not still running
systemctl start docker

Note: 'systemctl restart docker' doesnt alway work – its beter to stop it and then verify its truly dead before restarting.

If there are no errors, then test by using 'docker info' first, then 'docker ps -a'. There will be no images or containers listed. Try a simple test run like

\$ docker run -it hello-world Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world 78445dd45222: Pull complete Digest:
sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7 Status:
Downloaded newer image for hello-world:latest

Hello from Docker! This message shows that your installation appears to be
working correctly.
Clone this wiki locally