How Do I Map A Local Folder To My Container On Windows 11 Docker Desktop?

Is there a beginners step by step guide or something? I’m super new to this and trying to get a program called LazyLibrarian working but I need it to have access to my books folder. I looked at the official docker stuff but I only saw how to set up Synchronized file shares on a pro plan. Is it not possible to do on a personal account? Sorry if this is a dumb question. I know very little and trying to help out my Mum set up a remote Library.

I can share my below templates for beginners:

Recommended links to learn the basics and concepts:

in short you can simply mount folders which is mentioned on all of the above guides.

If you share your exact problem with error messages and commands used for creating the container, someone may have an idea what you are doing wrong.

Direct links to sharing local files, not just with the file sync feature

“If you share your exact problem with error messages and commands used for creating the container, someone may have an idea what you are doing wrong.”

So I installed it via package center inside Docker Desktop, then I just hit the run button. I’ll try reading through the links you provided and see if I can figure it out.

I can not for the life of me figure this out even after reading all those. I think I may be useless at this aha.

This is the system info of the program (LazyLibrarian)

Startup cmd: ['/lsiopy/bin/python3', '/app/lazylibrarian/LazyLibrarian.py', '--datadir', '/config', '--nolaunch']
config file: /config/config.ini
Interface: bookstrap
Loglevel: INFO
Sys_Encoding: UTF-8
Docker: False
git_repo: lazylibrarian
git_user: LazyLibrarian
git_branch: master
latest_version: 5d26b33148e04f8ae42dba16e5f241e1ebea4277
git_updated: Sun Nov 24 12:12:01 2024
current_version: 5d26b331
git_host: gitlab.com
commits_behind: 0
install_type: source
auto_update: 
db version: 85
Python version: ['3.12.3 (main, Nov  6 2024, 18:32:19) [GCC 13.2.0]']
uname: uname_result(system='Linux', node='41975f32bca4', release='5.15.153.1-microsoft-standard-WSL2', version='#1 SMP Fri Mar 29 23:14:13 UTC 2024', machine='x86_64')
Platform: Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.39
httplib2: 0.22.0
urllib3: 1.26.12
requests: 2.28.1
tls: TLS 1.3
cherrypy: 3.6.0
sqlite3: 3.45.1
mako: 1.1.3
webencodings: 0.5
apprise: 1.9.0
unrar2: 0.99.7
bs4: 4.11.1
html5lib: 1.1
python imaging: 11.0.0
icrawler: 0.6.3
openssl: OpenSSL 3.0.13 30 Jan 2024
pyOpenSSL: 24.2.1
cryptography: 43.0.3
fuzz: 0.19.0
Levenshtein: 0.26.1
Rapidfuzz: 3.10.1
magic: libmagic.so.1

Whenever I try and connect my Calibre library I get this error

2024-11-24 07:19:24 2024-11-24 12:19:24,517 ERROR: run_script exception: FileNotFoundError [Errno 2] No such file or directory: 'C:\\Users\\alex-\\Calibre Library\\' [common.py:501 (WEBSERVER)]

And whenever I try and bind mount the directory to my container I get this error

/bin/sh: 1: docker: not found

But how do you run the container that gives you the error of “No such file or directory”?

I click the run button.

I’m not entirely sure what the issue is. If you use Docker Desktop’s GUI to runa container, you can still mount folders and there are three dots onto which you can click and browse your host.

The error message shows a Windows path, but if that is a container log, it shouldn’t even know about your windows paths, so I guess you configued the the host paths somewhere which is not visible for the container, only the container path.

The second error message about not finding the docker command is the second I don’t understand. I assume you executed the docker command in the container, not on the host.

I asked about how you created the container to be able to reproduce the issue or understand at least what you configured, but the information about that you clicked on the “Run” button doesn’t bring me closer to reproducing it :slight_smile:

If you can share which image you are using exactly and what you set for the container and in which field, someone can give you a better answer.

I made a video to show how I’m doing things so someone can hopefully tell me how dumb I’m doing it and show me the proper way lol. I just wanted to help my Mom out with ebook automation and remote download aha.

I finally figured it out. Thank you for the help.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.