{"id":334,"date":"2023-03-22T16:21:44","date_gmt":"2023-03-22T07:21:44","guid":{"rendered":"http:\/\/192.168.0.139:8080\/2023\/03\/22\/nextcloud%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b%ef%bc%88docker%e4%bd%bf%e7%94%a8%ef%bc%89\/"},"modified":"2023-03-22T16:21:44","modified_gmt":"2023-03-22T07:21:44","slug":"nextcloud%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b%ef%bc%88docker%e4%bd%bf%e7%94%a8%ef%bc%89","status":"publish","type":"post","link":"http:\/\/192.168.0.139:8080\/2023\/03\/22\/334\/","title":{"rendered":"NextCloud\u3092\u69cb\u7bc9\u3059\u308b\uff08Docker\u4f7f\u7528\uff09"},"content":{"rendered":"\n

\u65e2\u5b58\u306eNextCloud\u304c\u52d5\u4f5c\u3057\u306a\u304f\u306a\u3063\u305f\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002GMO\u30b0\u30ed\u30fc\u30d0\u30eb\u30b5\u30a4\u30f3\u306e\u682a\u4e3b\u512a\u5f85\u3092\u4f7f\u7528\u3057\u3066\u3001wappy\u3092\u5951\u7d04\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8001\u673d\u5316\u3067\u65b0\u30b7\u30b9\u30c6\u30e0\u306b\u79fb\u884c\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n
\"\"\/<\/figure>\n\n\n\n

\u65b0\u30b7\u30b9\u30c6\u30e0\u306fwadax\u3068\u306a\u308a\u3001NextCloud\u304c\u52d5\u4f5c\u3057\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u305d\u3053\u3067\u3001\u4eca\u56de\u306fOracle Cloud\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u3067docker\u3092\u4f7f\u7528\u3057\u3066\u3001NextCloud\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u65b0\u30b7\u30b9\u30c6\u30e0\u3084\u3001\u307b\u304b\u306e\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u3067\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u307e\u305f\u3001Windows\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fDocker\u3067\u3082\u53ef\u80fd\u3067\u3059\u3002Nextcloud\u306f\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u4f5c\u6210\u3068\u4f7f\u7528\u306e\u305f\u3081\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30b5\u30fc\u30d0\u578b\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3042\u308b\u3002\u6a5f\u80fd\u7684\u306b\u306fDropbox\u306b\u4f3c\u3066\u3044\u308b\u304c\u3001\u30aa\u30d5\u30d7\u30ec\u30df\u30b9\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u30b9\u30c8\u30ec\u30fc\u30b8\u30b5\u30fc\u30d3\u30b9\u306f\u63d0\u4f9b\u3057\u306a\u3044\u3002NextCloud\u306e\u516c\u5f0f\u30a4\u30e1\u30fc\u30b8\u3092\u5229\u7528\u3057\u3066\u4f5c\u696d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

https:\/\/hub.docker.com\/_\/nextcloud<\/a><\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u307e\u305a\u306f\u3001docker run\u306e\u51fa\u6765\u308b\u3060\u3051\u5c11\u306a\u3044\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u7acb\u3061\u4e0a\u3052\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306a\u306e\u3067\u3001\u5f8c\u304b\u3089\u3053\u306e\u30b3\u30f3\u30c6\u30ca\u306f\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

docker run --name test -d nextcloud<\/code><\/pre>\n\n\n\n

\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u3063\u3066\u3001NextCloud\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

docker exec -ti test bash<\/code><\/pre>\n\n\n\n

\u6b21\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5b58\u5728\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\/var\/www\/html<\/p>\n\n\n\n

\u78ba\u8a8d\u3057\u305f\u3089\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u51fa\u307e\u3059\u3002<\/p>\n\n\n\n

\u30db\u30b9\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3068\u3001\u30db\u30b9\u30c8\u306e\u30c7\u30fc\u30bf\u304c\u512a\u5148\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002\u4ee5\u524d\u3001\u30db\u30b9\u30c8\u306e\u7a7a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u30c7\u30fc\u30bf\u304c\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u5171\u6709\u3057\u305f\u6642\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u30de\u30a6\u30f3\u30c8\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u7a7a\u306b\u306a\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u305d\u3053\u3067\u3001\u30db\u30b9\u30c8\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u3001\u30b3\u30f3\u30c6\u30ca\u304b\u3089NextCloud\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u3001\u30db\u30b9\u30c8\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

mkdir nextcloud\ncd nextcloud\ndocker cp test:\/var\/www\/html \/root\/nextcloud<\/code><\/pre>\n\n\n\n

\u3057\u304b\u3057\u3001html\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3054\u3068\u30b3\u30d4\u30fc\u3057\u3066\u304d\u305f\u306e\u3067\u3001\u524a\u9664\u3057\u3066\u304b\u3089\u4ed6\u306e\u30b3\u30de\u30f3\u30c9\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u30b9\u30e9\u30c3\u30b7\u30e5\u306e\u5f8c\u308d\u306b\u30d4\u30ea\u30aa\u30c9\u3092\u5165\u529b\u3059\u308b\u3068html\u914d\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u76ee\u7684\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

rm -rf html\ndocker cp test:\/var\/www\/html\/. \/root\/nextcloud<\/code><\/pre>\n\n\n\n

\u30db\u30b9\u30c8\u306bNextCloud\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u308a\u5bc4\u305b\u305f\u306e\u3067\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u505c\u6b62\u3057\u3066\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

docker stop test\ndocker rm test<\/code><\/pre>\n\n\n\n

Nextcloud\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5b58\u5728\u3059\u308b\u3082\u306e\u4ee5\u5916\u306e\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf (\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306a\u3069) \u306f\u3001\u7121\u540d\u306edocker volume\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u5834\u6240\u306f\/var\/lib\/docker\/volumes\/\u3002\u308f\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u3001\u6307\u5b9a\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

docker run -d \n--name nc \n-p 5050:80 \n-v \/root\/nextcloud:\/var\/www\/html \nnextcloud<\/code><\/pre>\n\n\n\n
\"\"\/<\/figure>\n\n\n\n

docker\u3067\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u6307\u5b9a\u3057\u305f\u30dd\u30fc\u30c8\u756a\u53f7\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3059\u308b\u3053\u3068\u3082\u5fd8\u308c\u305a\u306b\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u3001Oracle Cloud\u306e\u30a4\u30f3\u30b0\u30ec\u30b9\u30eb\u30fc\u30eb\u306b\u3082\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

ufw status\nufw allow 5050\/tcp<\/code><\/pre>\n\n\n\n

\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u5225\u306e\u5834\u6240\u306b\u3042\u308b\u306e\u3067\u4f5c\u6210\u306f\u3057\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001NextCloud\u3067\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4e8b\u524d\u306b\u4f5c\u6210\u3057\u3066\u304a\u304d\u3001\u5916\u90e8\u63a5\u7d9a\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

http:\/\/IP\u30a2\u30c9\u30ec\u30b9:5050\/<\/p>\n\n\n\n

\u3057\u304b\u3057\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

Can’t write into config directory!
This can usually be fixed by giving the webserver write access to the config directory.<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u5148\u307b\u3069\u3001\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u30db\u30b9\u30c8\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u305f\u6642\u306b\u3001\u6240\u6709\u6a29\u304croot\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

chown -R www-data:www-data \/root\/nextcloud<\/code><\/pre>\n\n\n\n

\u518d\u3073\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u6b63\u5e38\u306b\u52d5\u4f5c\u306f\u3057\u307e\u3057\u305f\u3002mysql\u3092\u9078\u629e\u3057\u3066\u5fc5\u8981\u306a\u9805\u76ee\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

NextCloud\u306fDropBox\u3084GoogleDrive\u3001CloudFlare\u306a\u3069\u3068\u9023\u643a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\n