quicklyon / zentao-docker

Quickon Docker Image for ZenTao(禅道官方容器镜像)
Other
25 stars 8 forks source link

Docker install failed #12

Open mcpeng opened 9 months ago

mcpeng commented 9 months ago
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'
zhouyq commented 9 months ago

$PWD/data 目录下是否有之前的数据?

mcpeng commented 9 months ago

$PWD/data 目录下是否有之前的数据?

没有,新创建的目录

drakosu commented 8 months ago

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:

  1. 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'
  2. Finish Zentao initalization.
  3. Stop Zentao container.
  4. Delete data (along with DB)
    rm -rf /share/Container/Zentao/data /share/Container/Zentao/db
  5. 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.