This is how to create a new docker image for an application, e.g. ltb

Step-by-step guide

  1. Create a host for docker as in Docker Installation CentOS 7
  2. Get a shell on the docker image

    docker run -i -t --name=centos7-ltb centos /bin/bash
  3. Install and configure the application according to the instructions, e.g. LTB Self Service Password Installation

    rpm --import
    yum install self-service-password-0.8-1.el5.noarch.rpm 
  4. Commit the changes to a new image

    [root@george ~]# docker ps -l
    CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                          PORTS               NAMES
    e51153ec60ff        61cff918cede        "/bin/bash"         2 minutes ago       Exited (0) About a minute ago                       ltb                 
    [root@george ~]# docker commit e51153ec60ff
  5. Run the docker image

    docker run -d -expose=80 -h --name="ltb" -P 61cff918cede