...
- Create a host for docker as in Docker Installation CentOS 7
Get a shell on the docker image
Code Block language bash 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
Code Block 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
Code Block [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
Code Block docker run -d -expose=80 -h george.crbs.ucsd.edu --name="ltb" -P 61cff918cede
Info |
---|
Related articles
Content by Label | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|