This is how to create a new docker image for an application, e.g. ltb
Add the steps involved:
Get a shell on the docker image
docker run -i -t --name=centos7-ltb centos /bin/bash |
Install and configure the application according to the instructions, e.g. LTB Self Service Password Installation
rpm --import http://ltb-project.org/wiki/lib/RPM-GPG-KEY-LTB-project wget http://tools.ltb-project.org/attachments/download/500/self-service-password-0.8-1.el5.noarch.rpm yum install self-service-password-0.8-1.el5.noarch.rpm |
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 |
Run the docker image
docker run -d -expose=80 -h george.crbs.ucsd.edu --name="ltb" -P 61cff918cede |
You may also want to use visual panels to communicate related information, tips or things users need to be aware of. |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.