Using mabl Link with Docker

An alternative to installing Java and downloading Link Agent from the mabl app is to run the Link Agent inside a Docker container. The Link Agent Docker image can be here found on Dockerhub. Running the Link Agent inside a Docker container is simple:

$ docker run mablhq/link-agent --api-key <your-api-key> --name <agent-name>

Alternatively you can run the container as a background daemon process:

$ docker run -d --name mabl-link-agent mablhq/link-agent \
--api-key <your-api-key> --name <agent-name>

If your test needs to access services running on the docker host (the machine/VM where docker is running), such as localhost URLs, you will need to add an additional flag when starting docker: --net="host". For example:

$ docker run --host="net" mablhq/link-agent --api-key <your-api-key> --name <agent-name>

Note about --net="host" compatibility

Unfortunately, the --net="host" flag only works in the Linux version of Docker. It will not work on MacOS or Windows. See #1, #2, and #3 for more information.

Using mabl Link with Docker

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.