QuickStart - Using ADMB Docker Windows Image

Released March 15, 2024

Details prerequisites and procedures to use the ADMB Docker Windows image for building and running ADMB models with the simple example

ADMB Docker Windows Image

The ADMB Docker Windows image uses the Windows LTSC 2022 or 2019 as the base container.

Below is the list of tools that are preinstalled.

  • Winlibs - GNU GCC version 13.2
  • ADMB - latest version


The Windows operating system is needed on the host computer to use the ADMB Docker Windows Image.

After the installing Docker Desktop, double click the the Docker Desktop to run services, then set the Docker type to Windows Containers (read documentation).


Using the Docker Desktop, pull the ADMB Docker Image or use the command below in the command prompt to download ADMB Docker Windows image. The image uses Windows 2022 LTSC as the base container.

   docker pull johnoel/admb-13.2:windows

For Windows 10 users, use the docker image in the procedures below. The image uses Windows 2019 LTSC as the base container.

   docker pull johnoel/admb-13.2:windows10


  1. Open Command Prompt and change to the model local directory.

     cd C:\simple
  2. Build simple.tpl into an Windows executable using the ADMB Docker Image and the mounted current local directory.

     docker run --env LDFLAGS=-static --rm --volume %CD%:C:\simple --workdir C:\simple johnoel/admb-13.2:windows simple.tpl
  3. Run simple.exe Windows executable.

    There are two options, run the executable on the local Windows host or use the container to run program.

    Run local directory,


    Or, use container to run executable. The output files will be written to the directory on local directory.

    docker run --rm --volume %CD%:C:\simple --workdir C:\simple --entrypoint simple.exe johnoel/admb-13.2:windows


The procedure below shows how to use the interactive command line shell to build and run models.

  1. Use docker to open container’s interactive shell and mount current local directory to the container.

     docker run -it --entrypoint cmd --rm --volume %CD%:C:\simple --workdir C:\simple johnoel/admb-13.2:windows
  2. Build and run simple model within the container’s interactive shell.

    Build simple.tpl.

     admb simple.tpl

    Run simple executable.


    Exit container shell.


Docker run options

Below details the options for docker run:


  • -it opens an interactive shell.

  • –env LDFLAGS=-static builds a static executable (ie admb.cmd -p).

  • –entrypoint resets the default program to run.

  • –rm automatically removes temporary files from a docker run.

  • –volume mounts the current local directory %CD% onto the container filesystem at :C:\simple.

  • –workdir changes the container current directory to C:\simple.

  • johnoel/admb-13.2:windows is the name of the Docker Image and simple.tpl is the file to build.


Below are links to documentation and online support for ADMB and Docker.

ADMB Foundation © 2007–2024