Public | Automated Build

Last pushed: a month ago
Short Description
latest ownCloud 8, CentOS, Nginx, fpm
Full Description

no longer maintained

please check
https://hub.docker.com/r/sameersbn/owncloud/

https://hub.docker.com/_/owncloud/

https://hub.docker.com/r/sameersbn/nextcloud/

https://hub.docker.com/_/nextcloud/

owncloud

https://registry.hub.docker.com/u/bios/docker-owncloud/

Docker image to start a ownCloud container with CentOS, Nginx, fpm

optional with linked MySQL/Postgres Container or external MySQL. Default is SQLite.

Quickstart

docker run -d bios/docker-owncloud

Now you have a running ownCloud Container with SQLite

Options

  • OC_RELATIV_URL_ROOT='/my/owncloud'
  • FQDN='my.owncloud.tld'
  • SSL_SELFSIGNED='true'
  • SSL_PROTOCOLS='TLSv1 TLSv1.1 TLSv1.2'
  • SSL_CIPHERS='AES256+EECDH:AES256+EDH'
  • DBPREFIX='oc'
  • DB_HOST='mysql01.owncloud.tld'
  • DB_USER='owncloud'
  • DB_PASSWORD='mysecretpassword'
  • DB_NAME='owncloud'

Linking to MySQL Container

docker run --name ownmysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -d mysql
docker run --name owncloud -d -e DB_PREFIX='oc_' \
--link ownmysql:mysql bios/docker-owncloud

Linking to PostgreSQL Container

docker run --name ownpostgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
docker exec ownpostgres sed -i '/IPv4 local connections/a host    all             all             172.17.42.1/32          trust' \
/var/lib/postgresql/data/pg_hba.conf
docker restart ownpostgres
docker run --name owncloud -d -e DB_PREFIX='oc_' \
--link ownpostgres:postgres bios/docker-owncloud

External MySQL Server

docker run --name owncloud --dns 8.8.8.8 \
-e DB_HOST='mysql01.owncloud.tld' \
-e DB_USER='owncloud' \
-e DB_PASSWORD='password' \
-e DB_NAME='owncloud' \
-e DB_PREFIX='_oc' -d bios/docker-owncloud

Example

Example with linked MySQL, custom path, custom SSL version / ciphers and custom FQDN

docker run --name owncloud --dns 8.8.4.4 -d \
-v /data/owncloud:/data \
-e SSL_SELFSIGNED='true' \
-e DB_PREFIX='oc_' \
-e SSL_PROTOCOLS='TLSv1 TLSv1.1 TLSv1.2' \
-e SSL_CIPHERS='AES256+EECDH:AES256+EDH' \
-e OC_RELATIV_URL_ROOT='/oc' \
-e FQDN='my.hostname.tld' -p 443:443 --link ownmysql:mysql bios/docker-owncloud

occ usage

Install php to use occ

docker exec owncloud yum -y install php56 php56-php-pdo php56-mysqlnd-qc-panel php56-php-mysqlnd php56-php-gd php56-php-mbstring 
docker exec owncloud sudo -u nginx /usr/bin/php56 /usr/share/nginx/owncloud/oc/occ status

Upgrade

docker stop owncloud 
docker rename owncloud owncloud_backup 
docker pull bios/docker-owncloud:latest 
-> do a new docker run
-> do a occ upgrade
Docker Pull Command
Owner
bios
Source Repository

Comments (7)
bios
a year ago

Hi jamesnesbitt, changed to epel-release

jamesnesbitt
2 years ago

Also, is it considered secure to install the remi repo by using an rpm over http? (without https)

jamesnesbitt
2 years ago

Any chance of a CentOS7 build?

Also, why not just use the default epel-release package, instead of installing an rpm through https?

RUN yum install epel-release
bios
2 years ago

Hi aungwin92,

you are trying to run a 64bit container on a 32bit system(raspberrypi).
You can fork the project and build it on a 32bit image.

aungwin92
2 years ago

(RaspberryPi2)ubuntu@localhost:~$ docker run -d bios/docker-owncloud
646baf8029fdca1a8d6e2b2bdf28a5b4dda92110e58aa54717db235c8efcf20a
FATA[0001] Error response from daemon: Cannot start container 646baf8029fdca1a8d6e2b2bdf28a5b4dda92110e58aa54717db235c8efcf20a: [8] System error: exec format error

The above error happen.

bios
2 years ago

Hi mkodockx, thank you. Fixed it with the last build.

mkodockx
2 years ago

Good work - you know how to fix the missing 'default_charset' set to UTF-8 in php.ini?

Owncloud is claiming about