Problem Description
利用docker搭建完owncloud,访问ip得到下面界面
You are accessing the server from an untrusted domain.
Please contact your administrator. lf you are an administrator of this instance, configure the "trusted_domains
setting in config/config.php.An example configuration is provided in config/config.sample.php or at the
documentation.
Solution one
1. Search for.../config/config.php
find / -name config.php
2. Edit the .../config/config.php file
to add a trust domain according to the format, and then revisit http://public network IP: port, the problem is solved
Solution two
Follow the steps below to reinstall
1. Pull the owncloud image
docker pull owncloud
2. Pull the mariadb image
docker pull mariadb:10.1.17
3. Run the database and owncloud
docker run --name own-mysql -e MYSQL_ROOT_PASSWORD=owncloud --restart=always -d mariadb:10.1.17
docker run --name owncloud -p 9091:80 -v /data/db/owncloud:/var/www/html/data --link own-mysql:mysql --restart=always -d owncloud
Note: If there is no data directory when the startup error is reported, you need to create a data directory under /var/www/html/
4. Browser configuration database, administrator account
Log in to http://ip:9091, the first login needs to be configured, and the configuration information is as follows: