WongSaang/chatgpt-ui

无法启动

Opened this issue · 2 comments

sudo docker-compose up --pull always -d
Builds, (re)creates, starts, and attaches to containers for a service.

Unless they are already running, this command also starts any linked services.

The docker-compose up command aggregates the output of each container. When
the command exits, all containers are stopped. Running docker-compose up -d
starts the containers in the background and leaves them running.

If there are existing containers for a service, and the service's configuration
or image was changed after the container's creation, docker-compose up picks
up the changes by stopping and recreating the containers (preserving mounted
volumes). To prevent Compose from picking up changes, use the --no-recreate
flag.

If you want to force Compose to stop and recreate all containers, use the
--force-recreate flag.

Usage: up [options] [--scale SERVICE=NUM...] [--] [SERVICE...]

如果不加 --pull always 可以正常启动, 但是后面如果要更新代码, 是不是 不可以了呢?

分两步走。
直接 docker-compose pull 拉代码
然后 docker-compose up -d 启动

感谢反馈,已更新 shell