Steps to reproduce
1.Get default docker-compose of owncloud
2.Change volumes parameter of owncloud to " - ./data:/mnt/data"
3.run in powerShell docker-compose up
owncloud:
dockerCompose services
owncloud:
image: owncloud/server:{OWNCLOUD_VERSION}
restart: always
ports:
- {HTTP_PORT}:8080
depends_on:
- db
- redis
environment:
- OWNCLOUD_DOMAIN={OWNCLOUD_DOMAIN}
- OWNCLOUD_DB_TYPE=mysql
- OWNCLOUD_DB_NAME=owncloud
- OWNCLOUD_DB_USERNAME=owncloud
- OWNCLOUD_DB_PASSWORD=owncloud
- OWNCLOUD_DB_HOST=db
- OWNCLOUD_ADMIN_USERNAME={ADMIN_USERNAME}
- OWNCLOUD_ADMIN_PASSWORD=${ADMIN_PASSWORD}
- OWNCLOUD_MYSQL_UTF8MB4=true
- OWNCLOUD_REDIS_ENABLED=true
- OWNCLOUD_REDIS_HOST=redis
healthcheck:
test: [āCMDā, ā/usr/bin/healthcheckā]
interval: 30s
timeout: 10s
retries: 5
volumes:
- ./data:/mnt/data
Expected behaviour
1.owncloud should be up and running.
2. All files should be stored under passed ā./dataā on host
Actual behaviour
- Under ./data location there are created 4 folder (apps, configs, files, sessions)
- Servis is restarting with info:
owncloud_1 | Waiting for Redisā¦
owncloud_1 | services are ready!
owncloud_1 | Writing config fileā¦
owncloud_1 | Fixing base permsā¦
owncloud_1 | Fixing data permsā¦
owncloud_1 | Fixing hook permsā¦
owncloud_1 | Upgrading server databaseā¦
owncloud_1 | Console has to be executed with the user that owns the file config/config.php
owncloud_1 | Current user: www-data
owncloud_1 | Owner of config.php: root
owncloud_1 | Try adding 'sudo -u root ā to the beginning of the command (without the single quotes)
owncloud_1 | dpkg: error: --compare-versions takes three arguments:
owncloud_1 |
owncloud_1 | Type dpkg --help for help about installing and deinstalling packages [];
owncloud_1 | Use āaptā or āaptitudeā for user-friendly package management;
owncloud_1 | Type dpkg -Dhelp for a list of dpkg debug flag values;
owncloud_1 | Type dpkg-deb --help for help about manipulating .deb files;
owncloud_1 | Options marked [] produce a lot of output - pipe it through ālessā or āmoreā !
owncloud_1 | Writing objectstore configā¦
owncloud_1 | Writing php configā¦
owncloud_1 | dpkg: error: --compare-versions takes three arguments:
owncloud_1 | Type dpkg --help for help about installing and deinstalling packages [];
owncloud_1 | Use āaptā or āaptitudeā for user-friendly package management;
owncloud_1 | Type dpkg -Dhelp for a list of dpkg debug flag values;
owncloud_1 | Type dpkg --force-help for a list of forcing options;
owncloud_1 | Type dpkg-deb --help for help about manipulating .deb files;
owncloud_1 |
owncloud_1 | Options marked [] produce a lot of output - pipe it through ālessā or āmoreā !
owncloud_1 | Writing apache configā¦
owncloud_1 | Enabling cron backgroundā¦
owncloud_1 | Console has to be executed with the user that owns the file config/config.php
owncloud_1 | Current user: www-data
owncloud_1 | Owner of config.php: root
owncloud_1 | Try adding 'sudo -u root ā to the beginning of the command (without the single quotes)
Server configuration
Operating system:
Windows10 ,
Docker 2.2.0.3 with linux container
owncloud/server:10.2.1
ownCloud version: owncloud/server:10.2.1