Docker installation Portainer, NextCloud

 
 

Installation docker

For example with ubuntu

sudo apt-get install docker.io

Set boot from the start

sudo systemctl enable docker

Installation Portainer

portainer is a docker's web management interface, there are similar DockerUI, Shipyard. If you do not want to lose every time to go to console command, it is best to install a.

Mirror Pull

sudo docker pull portainer/portainer

Create a container

Create a container, binding 9000 port, and then open the browser. The initial landing a registered user, then select the local connection to the local docker.

docker run -d -p 9000:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock --name portainer portainer/portainer

Installation Nextcloud

In the mirror inside nextcloud search and download.

Create a container

Go portainer container interface, add a container, and then set the port and persistent volumes. nextcloud container data path is / var / WWW / HTML , is set up and then deploy container, open the page log nextcloud.

/var/www/html Main folder, needed for updating
/var/www/html/custom_apps installed / modified apps
/var/www/html/config local configuration
/var/www/html/data the actual data of your Nextcloud
/var/www/html/themes/<you_custom_theme> theming/branding

Windows 10 maps WebDav

nextcloud support webdav, can be mapped as a network drive in windows. To use this feature, you need two operations.

Let Window Support visit http webdav, the registry HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ WebClient \ Parameters The following key BasicAuthLevel changed to 2 , and then restart the service webclient .

然后映射网络驱动器,但是要注意路径。官方文档的说明上面给的路径是https://example.com/nextcloud/remote.php/dav/files/USERNAME/ ,注意路径中的nextcloud是nextcloud的路径,使用docker直接装应该没有的,例如

http://127.0.0.1/remote.php/dav/files/zhangsan

而且,后面可以继续跟文件夹的,如果网盘存在这个目录的话

http://127.0.0.1/remote.php/dav/files/zhangsan/Documents

另外,用这个地址http://example.com/remote.php/webdav/也可以连接上的

http://127.0.0.1/remote.php/webdav/
http://127.0.0.1/remote.php/webdav/Documents
screenshot of mapping WebDAV on Windows Explorer
官方文档的图

Guess you like

Origin www.cnblogs.com/haisong1991/p/11408542.html