Finalize installation
Run final installation scripts
In order to prepare the application for the first use, we need to run some scripts which activates tha database and creates secret tokens for the application..
sudo docker start ktdocker0
sudo docker run --rm -e TZ=Europe/Berlin --net=host \
-v ktdocker0rw:/rw -v ktdocker0rwshared:/rwshared \
ktdocker:latest /rw/bin/cms.sh /finish-installation
sudo docker run --rm -e TZ=Europe/Berlin --net=host \
-v ktdocker0rw:/rw -v ktdocker0rwshared:/rwshared \
ktdocker:latest /rw/bin/cms.sh /write-secret-file
Install a disk pool
A disk pool to store large files instead of putting them into the database is strongly recommended to improve performance.
sudo docker run --rm -e TZ=Europe/Berlin --net=host \
-v ktdocker0rw:/rw -v ktdocker0rwshared:/rwshared \
ktdocker:latest /rw/bin/cms.sh /make-disk-pool default /rwshared/
Create the first application user
Finally we create a first user to log into the application
sudo docker run -it --rm -e TZ=Europe/Berlin --net=host \
-v ktdocker0rw:/rw -v ktdocker0rwshared:/rwshared \
ktdocker:latest /rw/bin/cms.sh /reset-administrator "$ADMIN_EMAIL"
Run the docker image:
Now we can finally start the docker image successfully. You can check the status with docker ps.
sudo docker start ktdocker0
Test the application is running
Test if the application is running.
# Directly the docker
curl -s http://localhost:8080/$PREFIX/ | grep __ac_password
# Via the internet
curl -s https://$PREFIX.$DOMAIN/$PREFIX/ | grep __ac_password
Or login with a GUI webbrowser. If you see the login page (e.g. the __ac_password string in the response), the installation was successful.