db name : racktables_db
db user : racktables_user
db password : racktables_password
Build image and run container.
$ docker build -t racktables .
$ docker run -itd --name racktables racktables
Check the container ip address.
$ docker inspect -f '{{ .NetworkSettings.IPAddress }}' racktables
Access to the racktables and setting up.
http://<IPAddress>/?module=installer
When instructed change the owner on "secret.php", execute the "chsecret.sh".
$ docker attach racktables
docker# /usr/local/share/racktables/chsecret.sh
docker# <Ctrl-p> <Ctrl-q> # detach container
Enjoy.
it fail whe try to use it with boot2docker.
There are two issues here.
That Dockerfile was doing modifications to kernel parameters at build-time, but those modifications would not carry over to run-time. In other words, the sysctl would be executed during the build, but have no effect on the run.
Those modifications shouldn't even be allowed inside containers (except when they are implemented per-namespace). If you need to tune those parameters, you should do that outside of Docker, or in a privileged container.