Using Docker images containing WombatOAM
You should already have access to the Docker image we created, if not, please get in touch. The base of the Docker image is the official Erlang 17.5 built by Docker (erlang:17.5-slim) (see The Docker Hub for details). The prebuilt Docker image is also available on DockerHub, please contact your Erlang Solutions sales representative or wombat@erlang-solutions.com for the access details.
Due to limitations in the Erlang VM currently it's not possible to connect to nodes
which are not in the same network as the Wombat container (as in, only exposing ports).
Use docker-compose
or docker stack
overlay networks or similar solutions
to start containers in the same network.
Starting WombatOAM in Docker for the first time
By default the script only creates the image file with a license and prints instructions on how to load and start it. An example:
- Import the image locally by running
docker load --input wombat_<version>.image.tar
- To start the created Docker image, use the
command. This will create and start a container withdocker run -tid -p 8080:8080 --name wombat-2.9.0 wombat:<version>
wombat-2.9.0
from thewombat:2.9.0
image.
If you wish to use a Docker image file not containing a license key, then a directory containing the license key has to be mounted:
1 2 3 |
|
If you wish to store the logs and the data on the host, outside the Docker container, then two directories have to be mounted, one for the data and one for the logs:
1 2 3 4 |
|
Starting already created container
If the Docker container is already created, just use
1 |
|
Stopping a running container
To stop the Docker container, use the
1 |
|
Removing the container and the image
To remove the Docker container and image from the system, use the
1 2 |
|
Starting PyWombat commands
To start the wombat_cli
command, use the
1 |
|
wombat_cli
, wombat_check
or
wombat_zabbixplugin
(Cacti, Nagios,
Zabbix) you have to use a command like above instead of the
simple /usr/local/bin/wombat_cli
.
Useful commands
To "connect" to (look into) the running container, use the
1 |
|