Hi,
I use the guide provided by @flvinny521
What could be the right process to add a turnkey image.
https://hub.docker.com/r/turnkeylinux/lamp-14.2/ no docs.
So I read https://www.turnkeylinux.org/lampstack no news.
Useful things come here where is explained to inizialize https://www.turnkeylinux.org/blog/announcing-docker-builds
OPTION 1 via interactive login this is what i have always done under linux
Code
CID=$(docker run -i -t -d turnkeylinux/core-13.0)
CIP=$(docker inspect -format='{{.NetworkSettings.IPAddress}}' $CID)
docker logs $CID | grep "Random initial root password"
ssh root@$CIP
OTION 2 I don't understand this
Code
Option 2: Create new image with preseeded values (non-interactive)
mkdir /root/wordpress
cat > /root/wordpress/inithooks.conf <<EOF
export ROOT_PASS=secretrootpass
export DB_PASS=secretmysqlpass
export APP_PASS=secretadminwppass
export APP_EMAIL=admin@example.com
export APP_DOMAIN=www.example.com
export HUB_APIKEY=SKIP
export SEC_UPDATES=FORCE
EOF
cat > /root/wordpress/Dockerfile <<EOF
FROM turnkeylinux/wordpress-13.0
ADD inithooks.conf /etc/inithooks.conf
EOF
docker build -t wordpress-13.0 /root/wordpress
docker run -i -t -d wordpress-13.0
Alles anzeigen
My purpose is:
- run a lamp stack
- if possible save config in a specific folder or have the possibility for a specific image save data in a specific folder.
Thanks