Missing docker-compose.yaml file and cannot access image resource after upgrade

Viewed 150
  1. use the following command to install:

    curl -fsSL https://raw.githubusercontent.com/apache/incubator-answer/main/docker-compose.yaml | docker compose -p answer  - f-up
    

    Why no file "docker-compose.yaml" after installation?

  2. upgrade, use the command

    curl - fsSL docker - https://raw.githubusercontent.com/apache/incubator-answer/main/docker-compose.yaml - o compose.Yml
    

    Re-download" docker-compose.yaml"

  3. A new container is created after the upgrade. Without updating the original system. The image resource cannot be accessed.

    What is the reason? How to update an existing system?

1 Answers

Only curl -fsSL https://raw.githubusercontent.com/apache/incubator-answer/main/docker-compose.yaml -o docker-compose.yaml the -o option will lead to download the file to local.

So you can just install and use the command below the first time.

curl -fsSL https://raw.githubusercontent.com/apache/incubator-answer/main/docker-compose.yaml -o docker-compose.yaml

docker compose up -d

So, after that, you don't need to re-download in the upgrade. You just need to follow the steps to upgrade. https://answer.apache.org/docs/upgrade

When upgrading, the container will be removed first(docker compose down) and then created a new one(docker compose up -d) with the new version.