zentao-docker
zentao-docker copied to clipboard
Docker install failed
- OS: Ubuntu 22.04
- Docker: Community 24.0.7
docker run -it \
-v $PWD/data:/data \
-p 80:80 \
-e MYSQL_INTERNAL=false \
-e ZT_MYSQL_HOST=localhost \
-e ZT_MYSQL_PORT=3306 \
-e ZT_MYSQL_USER=user \
-e ZT_MYSQL_PASSWORD='password' \
-e ZT_MYSQL_DB=db_name \
easysoft/zentao
00:45:15.89
00:45:15.89 Welcome to the Easysoft ZenTao 18.8 container
00:45:15.90 Subscribe to project updates by watching https://www.zentao.net
00:45:15.90 Submit issues and feature requests at https://www.zentao.net/ask.html
00:45:15.90
00:45:15.93 INFO ==> Prepare persistence directories.
mv: cannot remove '/apps/zentao/config/license': Invalid argument
Retry:
00:45:45.93
00:45:45.94 Welcome to the Easysoft ZenTao 18.8 container
00:45:45.94 Subscribe to project updates by watching https://www.zentao.net
00:45:45.94 Submit issues and feature requests at https://www.zentao.net/ask.html
00:45:45.95
00:45:45.97 INFO ==> Prepare persistence directories.
mv: cannot move '/apps/zentao/config/my.php' to a subdirectory of itself, '/apps/zentao/config/my.php.14'
$PWD/data 目录下是否有之前的数据?
$PWD/data 目录下是否有之前的数据?
没有,新创建的目录
I got similar error. It is wired since I removed data folder
Error message:
17:01:02.71
17:01:02.71 Welcome to the Easysoft ZenTao 18.9 container
17:01:02.71 Subscribe to project updates by watching https://www.zentao.net
17:01:02.71 Submit issues and feature requests at https://www.zentao.net/ask.html
17:01:02.71
17:01:02.72 INFO ==> Prepare persistence directories.
mkdir: cannot create directory '/apps/zentao/config/license': File exists
Steps:
- Bring up Zentao instance up with docker-compose.yml proper configured, with following volume mounted
zentao:
volumes:
- '/share/Container/Zentao/data:/data'
zentao-mysql:
volumes:
- '/share/Container/Zentao/db:/var/lib/mysql'
- Finish Zentao initalization.
- Stop Zentao container.
- Delete data (along with DB)
rm -rf /share/Container/Zentao/data /share/Container/Zentao/db
- Start Zentao container, and the error appears.
With these steps, I am expecting having Zentao restarts freshly. However, according to log, there are some files persisted. Does the docker image mounts volumes besides /data?
Note: I end up deleting old container and then 'docker-compose up' again. Error does not appear this way.