Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker container can only start successfully on the first start, fails on subsequent restarts #3

Open
Neurrone opened this issue Mar 15, 2020 · 0 comments

Comments

@Neurrone
Copy link

I'm running the image using a simple docker-compose file:

version: '2'
services:
  ikiwiki:
    image: 'dgsb/ikiwiki'
    ports:
      - '2222:22'
      - '8080:80'
    volumes:
      - './data:/wiki'

It starts fine the first time when I do docker-compose up. But when trying to start the container after shutting it down, I always get the following error:

> docker-compose up
Starting ikiwiki_ikiwiki_1 ... done                                                                                                                                         Attaching to ikiwiki_ikiwiki_1
ikiwiki_1  | /
ikiwiki_1  | fatal: destination path '/var/www/wiki.git' already exists and is not an empty directory.
ikiwiki_ikiwiki_1 exited with code 128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant