nextcloud / nextcloud/nextcloud-docker-dev

stable containers don't work if downed once

Open
#391 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
190
Forks
103
Avg merge
4h 36m
Merged PRs (30d)
1

Description

Description:

When setting up the dev environment, the first launch of a stable container works perfectly. However, doing docker compose down stableXX and then docker compose up -d stableXX, there will be an error where the container says the server is not installed, it will try to install it and fail.

Steps to reproduce
Initial setup
git clone https://github.com/juliusknorr/nextcloud-docker-dev
cd nextcloud-docker-dev
./bootstrap.sh

cd workspace/server
git fetch origin stable31:stable31
git worktree add ../stable31 stable31
cd ../stable31
git submodule update --init

docker compose up -d nextcloud stable31

At this point, both nextcloud and stable31 works.

The breaking point
docker compose down
docker compose up -d nextcloud stable31

nextcloud.local works but stable31.local doesn't
Image

You unfortunately have to remove the volumes to be able to relaunch the stable containers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using bootstrap.sh, the stable31 worktree, and the docker compose up/down commands described in the issue. Inspect the compose configuration and volume behavior for stable31; done means a stable container starts successfully after docker compose down and docker compose up without removing volumes.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.