{"id":7351,"date":"2026-07-09T23:55:09","date_gmt":"2026-07-09T15:55:09","guid":{"rendered":"https:\/\/i007.vip:15443\/wordpress\/?p=7351"},"modified":"2026-07-18T14:34:57","modified_gmt":"2026-07-18T06:34:57","slug":"filebrowser-docker%e6%96%b9%e5%bc%8f%e5%ae%89%e8%a3%85%ef%bc%8c%e6%ad%a3%e5%9c%a8%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/7351","title":{"rendered":"filebrowser docker\u65b9\u5f0f\u5b89\u88c5\uff0c\u6b63\u5728\u4f7f\u7528"},"content":{"rendered":"<header class=\"md-header md-header--shadow md-header--lifted\" data-md-component=\"header\">\n<nav class=\"md-header__inner md-grid\" aria-label=\"Header\">\n<div class=\"md-search\" role=\"dialog\" data-md-component=\"search\">\n<div class=\"md-search__inner\" role=\"search\">\n<form class=\"md-search__form\" name=\"search\">\n<div class=\"md-search__suggest\" data-md-component=\"search-suggest\">filebrowser\/filebrowser<\/div>\n<\/form>\n<\/div>\n<\/div>\n<div class=\"md-header__source\">\n<div class=\"md-source__repository md-source__repository--active\">\n<ul class=\"md-source__facts\">\n<li class=\"md-source__fact md-source__fact--version\">v2.63.18<\/li>\n<li class=\"md-source__fact md-source__fact--stars\">35.5k<\/li>\n<li class=\"md-source__fact md-source__fact--forks\">3.9k<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/nav>\n<nav class=\"md-tabs\" aria-label=\"Tabs\" data-md-component=\"tabs\">\n<div class=\"md-grid\">\n<ul class=\"md-tabs__list\">\n<li class=\"md-tabs__item\"><a class=\"md-tabs__link\" href=\"https:\/\/filebrowser.org\/index.html\">Home<\/a><\/li>\n<li class=\"md-tabs__item md-tabs__item--active\"><a class=\"md-tabs__link\" href=\"https:\/\/filebrowser.org\/installation.html\">Documentation<\/a><\/li>\n<li class=\"md-tabs__item\"><a class=\"md-tabs__link\" href=\"https:\/\/filebrowser.org\/contributing.html\">Contributing<\/a><\/li>\n<li class=\"md-tabs__item\"><a class=\"md-tabs__link\" href=\"https:\/\/filebrowser.org\/changelog.html\">Changelog<\/a><\/li>\n<\/ul>\n<\/div>\n<\/nav>\n<\/header>\n<div class=\"md-container\" data-md-component=\"container\">\n<div class=\"md-main__inner md-grid\">\n<div class=\"md-sidebar md-sidebar--primary\" data-md-component=\"sidebar\" data-md-type=\"navigation\">\n<div class=\"md-sidebar__scrollwrap\">\n<div class=\"md-sidebar__inner\">\n<nav class=\"md-nav md-nav--primary md-nav--lifted\" aria-label=\"Navigation\" data-md-level=\"0\">\n<ul class=\"md-nav__list\">\n<li class=\"md-nav__item md-nav__item--active md-nav__item--section md-nav__item--nested\"><label id=\"__nav_2_label\" class=\"md-nav__link\" tabindex=\"\" for=\"__nav_2\"><span class=\"md-ellipsis\">Documentation<\/span><\/label><br \/>\n<nav class=\"md-nav\" data-md-level=\"1\" aria-labelledby=\"__nav_2_label\" aria-expanded=\"true\">\n<ul class=\"md-nav__list\">\n<li class=\"md-nav__item md-nav__item--active\"><a class=\"md-nav__link md-nav__link--active\" href=\"https:\/\/filebrowser.org\/installation.html\"><span class=\"md-ellipsis\">Installation<\/span><\/a><\/li>\n<li class=\"md-nav__item md-nav__item--nested\"><label id=\"__nav_2_2_label\" class=\"md-nav__link\" tabindex=\"0\" for=\"__nav_2_2\"><span class=\"md-ellipsis\">Configuration<\/span><\/label><br \/>\n<nav class=\"md-nav\" data-md-level=\"2\" aria-labelledby=\"__nav_2_2_label\" aria-expanded=\"false\"><\/nav>\n<\/li>\n<li class=\"md-nav__item\"><a class=\"md-nav__link\" href=\"https:\/\/filebrowser.org\/troubleshooting.html\"><span class=\"md-ellipsis\">Troubleshooting<\/span><\/a><\/li>\n<li class=\"md-nav__item\"><a class=\"md-nav__link\" href=\"https:\/\/filebrowser.org\/deployment.html\"><span class=\"md-ellipsis\">Deployment<\/span><\/a><\/li>\n<li class=\"md-nav__item md-nav__item--nested\"><label id=\"__nav_2_5_label\" class=\"md-nav__link\" tabindex=\"0\" for=\"__nav_2_5\"><span class=\"md-ellipsis\">Command Line Usage<\/span><\/label><br \/>\n<nav class=\"md-nav\" data-md-level=\"2\" aria-labelledby=\"__nav_2_5_label\" aria-expanded=\"false\"><\/nav>\n<\/li>\n<\/ul>\n<\/nav>\n<\/li>\n<\/ul>\n<\/nav>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"md-sidebar md-sidebar--secondary\" data-md-component=\"sidebar\" data-md-type=\"toc\">\n<div class=\"md-sidebar__scrollwrap\">\n<div class=\"md-sidebar__inner\">\n<nav class=\"md-nav md-nav--secondary\" aria-label=\"Table of contents\"><label class=\"md-nav__title\" for=\"__toc\">Table of contents<\/label><\/p>\n<ul class=\"md-nav__list\" data-md-component=\"toc\">\n<li class=\"md-nav__item\"><a class=\"md-nav__link\" href=\"https:\/\/filebrowser.org\/installation.html#binary\"><span class=\"md-ellipsis\">Binary<\/span><\/a><\/li>\n<li class=\"md-nav__item\"><a class=\"md-nav__link\" href=\"https:\/\/filebrowser.org\/installation.html#docker\"><span class=\"md-ellipsis\">Docker<\/span><\/a><br \/>\n<nav class=\"md-nav\" aria-label=\"Docker\">\n<ul class=\"md-nav__list\">\n<li class=\"md-nav__item\"><a class=\"md-nav__link\" href=\"https:\/\/filebrowser.org\/installation.html#bare-alpine-image\"><span class=\"md-ellipsis\">Bare Alpine Image<\/span><\/a><\/li>\n<li class=\"md-nav__item\"><a class=\"md-nav__link\" href=\"https:\/\/filebrowser.org\/installation.html#s6-overlay-image\"><span class=\"md-ellipsis\">S6 Overlay Image<\/span><\/a><\/li>\n<\/ul>\n<\/nav>\n<\/li>\n<li class=\"md-nav__item\"><a class=\"md-nav__link\" href=\"https:\/\/filebrowser.org\/installation.html#first-boot\"><span class=\"md-ellipsis\">First Boot<\/span><\/a><\/li>\n<\/ul>\n<\/nav>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"md-content\" data-md-component=\"content\">\n<article class=\"md-content__inner md-typeset\">\n<h1 id=\"installation\">Installation<a class=\"headerlink\" title=\"Permanent link\" href=\"https:\/\/filebrowser.org\/installation.html#installation\">\u00b6<\/a><\/h1>\n<p>File Browser is a single binary and can be used as standalone executable. However, it is also available as a\u00a0<a href=\"https:\/\/www.docker.com\/\">Docker<\/a>\u00a0image. The installation and first time setup is quite straightforward independently of which system you use.<\/p>\n<h2 id=\"binary\">Binary<a class=\"headerlink\" title=\"Permanent link\" href=\"https:\/\/filebrowser.org\/installation.html#binary\">\u00b6<\/a><\/h2>\n<p>The quickest and easiest way to install File Browser is to use a package manager, or our download script, which automatically fetches the latest version of File Browser for your platform. Alternatively, you can manually download the binary from the\u00a0<a href=\"https:\/\/github.com\/filebrowser\/filebrowser\/releases\">releases page<\/a>.<\/p>\n<div class=\"tabbed-set tabbed-alternate\" data-tabs=\"1:3\">\n<p><input id=\"__tabbed_1_1\" checked=\"checked\" name=\"__tabbed_1\" type=\"radio\" \/><input id=\"__tabbed_1_2\" name=\"__tabbed_1\" type=\"radio\" \/><input id=\"__tabbed_1_3\" name=\"__tabbed_1\" type=\"radio\" \/><\/p>\n<div class=\"tabbed-labels tabbed-labels--linked\"><label for=\"__tabbed_1_1\"><a tabindex=\"-1\" href=\"https:\/\/filebrowser.org\/installation.html#__tabbed_1_1\">Brew<\/a><\/label><label for=\"__tabbed_1_2\"><a tabindex=\"-1\" href=\"https:\/\/filebrowser.org\/installation.html#__tabbed_1_2\">Unix<\/a><\/label><label for=\"__tabbed_1_3\"><a tabindex=\"-1\" href=\"https:\/\/filebrowser.org\/installation.html#__tabbed_1_3\">Windows<\/a><\/label><\/div>\n<div class=\"tabbed-content\">\n<div class=\"tabbed-block\">\n<div class=\"highlight\"><\/div>\n<nav>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">curl -fsSL https:\/\/raw.githubusercontent.com\/filebrowser\/get\/master\/get.sh | bash\r\nfilebrowser -r \/path\/to\/your\/files<\/pre>\n<p>&nbsp;<\/p>\n<\/nav>\n<\/div>\n<\/div>\n<div class=\"tabbed-control tabbed-control--prev\" hidden=\"\"><\/div>\n<div class=\"tabbed-control tabbed-control--next\" hidden=\"\"><\/div>\n<\/div>\n<p>File Browser is now up and running. Read some\u00a0<a href=\"https:\/\/filebrowser.org\/installation.html#first-boot\">first boot<\/a>\u00a0for more information.<\/p>\n<h2 id=\"docker\">Docker<a class=\"headerlink\" title=\"Permanent link\" href=\"https:\/\/filebrowser.org\/installation.html#docker\">\u00b6<\/a><\/h2>\n<p>File Browser is available as two different Docker images, which can be found on\u00a0<a href=\"https:\/\/hub.docker.com\/r\/filebrowser\/filebrowser\">Docker Hub<\/a>: a\u00a0<a href=\"https:\/\/filebrowser.org\/installation.html#bare-alpine-image\">bare Alpine image<\/a>\u00a0and an\u00a0<a href=\"https:\/\/filebrowser.org\/installation.html#s6-overlay-image\">S6 Overlay image<\/a>.<\/p>\n<h3 id=\"bare-alpine-image\">Bare Alpine Image<a class=\"headerlink\" title=\"Permanent link\" href=\"https:\/\/filebrowser.org\/installation.html#bare-alpine-image\">\u00b6<\/a><\/h3>\n<div class=\"highlight\">\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">docker run \\\r\n    -v filebrowser_data:\/srv \\\r\n    -v filebrowser_database:\/database \\\r\n    -v filebrowser_config:\/config \\\r\n    -p 8080:80 \\\r\n    filebrowser\/filebrowser<code><\/code><\/pre>\n<pre><code><\/code><\/pre>\n<\/div>\n<p>Where\u00a0<code>filebrowser_data<\/code>,\u00a0<code>filebrowser_database<\/code>\u00a0and\u00a0<code>filebrowser_config<\/code>\u00a0are Docker\u00a0<a href=\"https:\/\/docs.docker.com\/engine\/storage\/volumes\/\">volumes<\/a>, where the data, database and configuration will be stored, respectively. The default configuration and database will be automatically initialized.<\/p>\n<p>The default user that runs File Browser inside the container has PID 1000 and GID 1000. If, for one reason or another, you want to run the Docker container with a different user, please consult Docker\u2019s\u00a0<a href=\"https:\/\/docs.docker.com\/engine\/containers\/run\/#user\">user documentation<\/a>.<\/p>\n<div class=\"admonition note\">\n<p class=\"admonition-title\">Note<\/p>\n<p>When using\u00a0<a href=\"https:\/\/docs.docker.com\/engine\/storage\/bind-mounts\/\">bind mounts<\/a>, that is, when you mount a path on the host in the container, you must manually ensure that they have the correct\u00a0<strong>permissions<\/strong>. Docker does not do this automatically for you. The host directories must be readable and writable by the user running inside the container. You can use the\u00a0<a href=\"https:\/\/linux.die.net\/man\/1\/chown\"><code>chown<\/code><\/a>\u00a0command to change the owner of those paths.<\/p>\n<\/div>\n<p>File Browser is now up and running. Read the\u00a0<a href=\"https:\/\/filebrowser.org\/installation.html#first-boot\">\u201cFirst Boot\u201d<\/a>\u00a0section for more information.<\/p>\n<h3 id=\"s6-overlay-image\">S6 Overlay Image<a class=\"headerlink\" title=\"Permanent link\" href=\"https:\/\/filebrowser.org\/installation.html#s6-overlay-image\">\u00b6<\/a><\/h3>\n<p>The\u00a0<code>s6<\/code>\u00a0image is based on LinuxServer and leverages the\u00a0<a href=\"https:\/\/github.com\/just-containers\/s6-overlay\">s6-overlay<\/a>\u00a0system for a standard, highly customizable image. It should be used as follows:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">docker run \\\r\n    -v \/path\/to\/srv:\/srv \\\r\n    -v \/path\/to\/database:\/database \\\r\n    -v \/path\/to\/config:\/config \\\r\n    -e PUID=$(id -u) \\\r\n    -e PGID=$(id -g) \\\r\n    -p 8080:80 \\\r\n    filebrowser\/filebrowser:s6<\/pre>\n<p>&nbsp;<\/p>\n<p>Where:<\/p>\n<ul>\n<li><code>\/path\/to\/srv<\/code>\u00a0contains the files root directory for File Browser<\/li>\n<li><code>\/path\/to\/config<\/code>\u00a0contains a\u00a0<code>settings.json<\/code>\u00a0file<\/li>\n<li><code>\/path\/to\/database<\/code>\u00a0contains a\u00a0<code>filebrowser.db<\/code>\u00a0file<\/li>\n<\/ul>\n<p>Both\u00a0<code>settings.json<\/code>\u00a0and\u00a0<code>filebrowser.db<\/code>\u00a0will automatically be initialized if they don\u2019t exist.<\/p>\n<p>File Browser is now up and running. Read the\u00a0<a href=\"https:\/\/filebrowser.org\/installation.html#first-boot\">\u201cFirst Boot\u201d<\/a>\u00a0section for more information.<\/p>\n<h2 id=\"first-boot\">First Boot<a class=\"headerlink\" title=\"Permanent link\" href=\"https:\/\/filebrowser.org\/installation.html#first-boot\">\u00b6<\/a><\/h2>\n<p>Your instance is now up and running. File Browser will automatically bootstrap a database, in which the configuration and the users are stored. You can find the address in which your instance is running, as well as the randomly generated password for the user\u00a0<code>admin<\/code>, in the console logs.<\/p>\n<div class=\"admonition warning\">\n<p class=\"admonition-title\">Warning<\/p>\n<p>The automatically generated password for the user\u00a0<code>admin<\/code>\u00a0is only displayed once. If you fail to remember it, you will need to manually delete the database and start File Browser again.<\/p>\n<\/div>\n<p>Although this is the fastest way to bootstrap an instance, we recommend you to take a look at other possible options, by checking\u00a0<a href=\"https:\/\/filebrowser.org\/cli\/filebrowser-config-init.html\"><code>config init<\/code><\/a>\u00a0and\u00a0<a href=\"https:\/\/filebrowser.org\/cli\/filebrowser-config-set.html\"><code>config set<\/code><\/a>, to make the installation as safe and customized as it can be.<\/p>\n<p>If your goal is to have a public-facing deployment, we recommend taking a look at the\u00a0<a href=\"https:\/\/filebrowser.org\/deployment.html\">deployment<\/a>\u00a0page for more information on how you can secure your installation.<\/p>\n<\/article>\n<\/div>\n<\/div>\n<p><button class=\"md-top md-icon\" tabindex=\"-1\" hidden=\"\" type=\"button\" data-md-component=\"top\">\u00a0Back to top<\/button><\/p>\n<footer class=\"md-footer\">\n<div class=\"md-footer-meta md-typeset\">\n<div class=\"md-footer-meta__inner md-grid\">\n<div class=\"md-copyright\">\n<div class=\"md-copyright__highlight\">Copyright \u00a9 2025 File Browser Contributors<\/div>\n<\/div>\n<div class=\"md-social\"><\/div>\n<\/div>\n<\/div>\n<\/footer>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>filebrowser\/filebrow<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[24],"tags":[125],"class_list":["post-7351","post","type-post","status-publish","format-standard","hentry","category-value_docs","tag-09-"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/7351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=7351"}],"version-history":[{"count":3,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/7351\/revisions"}],"predecessor-version":[{"id":7372,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/7351\/revisions\/7372"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=7351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=7351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=7351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}