Run the Docker Image

The following steps run the Docker image on port 8080. Make sure that the port is not being used, or use a different port as described in the procedure.

  1. With a Docker daemon running, run the Docker image:

    $ docker run -p 8080:8080 ig-image

    IG starts up, and the console displays the message log.

  2. Go to http://localhost:8080 to view the IG welcome page.

Consider using the following options when you run the Docker image:

  • The default ports 8080:8080 equate to local-machine-port:internal-container-port. IG can run on a different port, but the container must always run on 8080. The following example runs IG on port 8090:

    $ docker run -p 8090:8080 ig-image

  • The default configuration directory is /var/ig/. The following example sets the configuration directory to $HOME/.openig:

    $ docker run -p 8080:8080 -v $HOME/.openig:/var/ig/ ig-image

  • Run the image in sh shell, in interactive mode, using the provided Forgerock user:

    $ docker run -p 8080:8080 -it --user 11111 ig-image sh
Read a different version of :