Run the Trust1Gateway as a Container

We've made running the Trust1Gateway and all of its components as a Docker container a cinch for you.

Prerequisites

  • If you aren't familiar with Docker, or haven't installed it yet, visit Docker's Guidearrow-up-right and read up on it/install the appropriate version for your OS.

  • In order to function, the Trust1Gateway Docker Container requires the following ports to be available at a minimum:

    • 28080

    • 8000

    • 3000

    • 3003

Getting the Trust1Gateway Docker Container Running

1. Head on over to the Trust1Gateway Docker Hubarrow-up-right 2. Take a look at the `Tags` tab to see what versions are available:

3. Pull the container to your machine by copy pasting the pull command below (or from Docker Hub)

By default Docker will pull the version tagged as latest, but you can specify a different version if you wish.

In your console terminal or command prompt, you'll see something like this:

4. Once the image is downloaded, run it as a container by executing the following command:

We'll briefly explain what the command line options mean:

Option

Example

Description

run

run trust1team/trust1gateway-with-ui

Run the specified image in a container

-dit

N/A

Run the image in detached, interactive mode and allocate a pseudo-TTY (See Docker documentationarrow-up-right for more details)

-p [ip]:[host port]:[container port]

-p 127.0.0.1:5433:5432

Maps an host port (i.e. the machine you are running docker in) to a port exposed by the docker container

--name [container-name]

--name t1g-ui

Gives a name to the container that we are about to create

After executing the command, you should see the following:

5. Let's verify the container is running. We can do this by executing the following command:

You should see something similar to this:

6. Congratulations, you are now running the entire Trust1Gateway as a Docker container. Now let's look at the next chapters to see how we can use it.

Last updated