Creating an Informix for Docker container

This procedure can be used create a docker container running one of the Informix for Docker images.

Note: The Informix for Docker images have moved from Docker Hub to the IBM Container Registry (ICR) repository.
The new locations are:
  • icr.io/informix/informix-developer-database
  • icr.io/informix/informix-innovator-c
  1. Log into your Docker registry:
    docker login
  2. Pull the Informix for Docker image from ICR:
    docker pull icr.io/informix/informix-developer-database:latest
  3. Run the following command to start the docker container:
    docker run -it --name ifx -h ifx --privileged -e LICENSE=accept \
        -p 9088:9088 -p 9089:9089 -p 27017:27017 -p 27018:27018 -p 27883:27883 \
        icr.io/informix/informix-developer-database:latest
    
    where
    • -h assigns the name ifx to the docker container.
    • -p specifies the port numbers to use.
    • --privileged starts the container in privileged mode.
    • -e LICENSE=accept accepts the license to use the software.
  4. Finally, run the following command to access the running Informix instance within your Docker container:
    docker exec -it ifx bash
  5. You can now create a Informix database within the active instance.