In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to use docker to install and deploy NextCloud private network disk". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to use docker to install and deploy NextCloud private network disk".
1. Query and download NextCloud image
Execute a command
Docker search nextclouddocker pull nextcloud
Demonstrate operation
# query nextcloud image [root@docker ~] # docker search nextcloudNAME DESCRIPTION STARS OFFICIAL AUTOMATEDnextcloud A safe home for all your data 3113 [OK] linuxserver/nextcloud A Nextcloud container, brought to you by Lin... 480nextcloud/all-in-one 25crazymax/nextcloud Nextcloud image based on Alpine Linux 9nextcloudci/server Nextcloud server straight from GitHub master 2 [OK] nextcloudci/php7.2 Docker container to execute PHP 7.2 unit tes … 1 [OK] nextcloud/univention-app-image 1nextcloudci/php7.3 Docker container to execute PHP 7.3 unit tes... 1 [OK] nextcloudci/translations-app The docker image to run our translation sync... 0 [OK] nextcloud/aio-talk 0nextcloud/aio-nextcloud 0nextcloud/aio-postgresql 0nextcloudhand aio- Apache 0nextcloud/aio-collabora 0nextcloudcookbook/testci A repository to contain the test routines fo... 0nextcloud/aio-redis 0nextcloudci/php7.4 Docker container for php7.4 unit tests 0nextcloud/aio-clamav 0treehouses/nextcloud-tags 0treehouses/nextcloud 0nextcloudci/php7.1 Docker container to execute PHP 7.1 unit tes … 0 [OK] nextcloudci/android Android test container 0 [OK] nextcloudci/php7.0 Docker container to execute PHP 7.0 unit tes... 0 [OK] nextcloud/aio-onlyoffice 0nextcloudci/php8.0 pull nextcloud image [root@docker ~] # docker pull nextcloudUsing default tag: latestlatest: Pulling from library/nextclouda2abf6c4d29d: Pull completec5608244554d: Pull complete2d07066487a0: Pull complete1b6dfaf1958c : Pull complete32c5e6a60073: Pull complete90cf855b27cc: Pull complete8b0f1068c586: Pull complete53530861540e: Pull completeb088256e8218: Pull complete29c48e642f3d: Pull completebebfd59a832e: Pull complete3c07d6be5322: Pull complete52a174ca2213: Pull complete2db451f4f766: Pull complete462c9168620c: Pull complete5f6a7ae88b1d: Pull complete8507904d39d6: Pull completef6dc5bb9d193: Pull completed57202c49578: Pull complete57f778f1c66e: Pull completeDigest: sha256:bd3406506335b6621b1eb7a3d897654ac7963e3db4b91cbea3436f159655d0baStatus: Downloaded newer image for nextcloud:latestdocker.io/library/nextcloud:latest# query whether nextcloud image has been downloaded [root@docker ~] # docker images | grep nextcloudnextcloud latest c805c152803c 4 months ago 969MB# to view nextcloud image details Information [root@docker ~] # docker inspect c805c152803c [{"Id": "sha256:c805c152803cd2efd9556755b99e97122bf51aeb5a2c3e0470a7098d205c2c0e" "RepoTags": ["nextcloud:latest"], "RepoDigests": ["nextcloud@sha256:bd3406506335b6621b1eb7a3d897654ac7963e3db4b91cbea3436f159655d0ba"], "Parent": "," Comment ":"," Created ":" 2021-12-22T12:11:13.660964245Z "," Container ":" 821b536dedc6cac092fa9abeaf773d541d4067faaf2980c8c8c5d77d08d195c0 " "ContainerConfig": {"Hostname": "821b536dedc6", "Domainname": "," User ":"," AttachStdin ": false," AttachStdout ": false," AttachStderr ": false," ExposedPorts ": {" 80/tcp ": {}} "Tty": false, OpenStdin: false, "StdinOnce": false, "Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" "PHPIZE_DEPS=autoconf\ t\ tdpkg-dev\ t\ tfile\ t\ tg++\ t\ tgcc\ t\ tlibc-dev\ t\ tmake\ t\ tpkg-config\ t\ tre2c", "PHP_INI_DIR=/usr/local/etc/php", "APACHE_CONFDIR=/etc/apache2", "APACHE_ENVVARS=/etc/apache2/envvars" "PHP_CFLAGS=-fstack-protector-strong-fpic-fpie-O2-D_LARGEFILE_SOURCE-D_FILE_OFFSET_BITS=64", "PHP_CPPFLAGS=-fstack-protector-strong-fpic-fpie-O2-D_LARGEFILE_SOURCE-D_FILE_OFFSET_BITS=64", "PHP_LDFLAGS=-Wl,-O1-pie", "GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 BFDDD28642824F8118EF77909B67A5C12229118F" PHP_VERSION=8.0.14 "," PHP_URL= https://www.php.net/distributions/php-8.0.14.tar.xz", "PHP_ASC_URL= https://www.php.net/distributions/php-8.0.14.tar.xz.asc"," PHP_SHA256=fbde8247ac200e4de73449d9fefc8b495d323b5be9c10cdb645fb431c91156e3 "," PHP_MEMORY_LIMIT=512M " "PHP_UPLOAD_LIMIT=512M", "NEXTCLOUD_VERSION=23.0.0"], * omit the content * 2, create and start the NextCloud container
Execute a command
Docker run-d-restart=always-- name nextcloud-p 5757name nextcloud 80 nextcloud:latest# parameters explain: # docker run: boot container #-d: background startup #-- restart=always:docker restart the container with restart #-- nmae nextcloud: custom container name #-p 5757name nextcloud 80: map port 5757 of the server to port 80 of the container # nextcloud:latest: select the image to start and version docker psdocker inspect 57a357e60bec
Demonstrate operation
[root@docker] # docker run-d-- restart=always-- name nextcloud-p 5757 restart=always 80 nextcloud:latest57a357e60bec1e31cd493c2f5fff8988906b2d76c3769394b592d94df589f0cd [root@docker ~] # docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES57a357e60bec nextcloud:latest "/ entrypoint.sh apac …" 5 minutes ago Up 5 minutes 0.0.0.0 80/tcp,:: 5757-> 80/tcp nextcloud [root@docker ~] # docker inspect 57a357e60bec [{"Id": "57a357e60bec1e31cd493c2f5fff8988906b2d76c3769394b592d94df589f0cd", "Created": "2022-05-16T04:39:06.762224758Z", "Path": "/ entrypoint.sh", "Args": ["apache2-foreground"] "State": {"Status": "running", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 1865, "ExitCode": 0, "Error": " "StartedAt": "2022-05-16T04:39:07.677422059Z", "FinishedAt": "0001-01-01T00:00:00Z"} * omit content *
Visit http://IP:5757
This example accesses http://192.168.200.66:5757
3. Visit the NextCloudWEB interface
Set the administrator username and password.
Wait for the installation application to complete.
Initialization complete.
Thank you for your reading, the above is the content of "how to use docker to install and deploy NextCloud private network disk". After the study of this article, I believe you have a deeper understanding of how to use docker to install and deploy NextCloud private network disk, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.