Linux & docker noob questions/review/suggestions.

  • Thread starter Thread starter Trex
  • Start date Start date
  • Replies Replies 32
  • Views Views 1,809
So, I searched the web for two days to mount the host system folder to the docker container and I failed to get that working. Can anyone with a little bit of spare time please do it remotely?

For reference, the drive I want to mount is located at /media/(myusername)/Multimedia/Movies and Series/Movies/Hollywood movie
I tried this command "sudo docker run -v /media/amit/Multimedia/Movies and Series/Movies/Hollywood movie:/media/Multimedia".

Which gives me error "
Unable to find image 'and:latest' locally
docker: Error response from daemon: pull access denied for and, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

"
 
You are missing image parameter and port parameter

(for jellyfin)

these are the ports (you can use other free ports)

-p 8096:8096 \
-p 8920:8920 #optional \
-p 7359:7359/udp #optional \
-p 1900:1900/udp #optional \

these are the host to docker directory paths (aka volumns - left side is your host path: right side is path from docker container)

-v /home/me/jellyfin:/config \
-v /home/me/sonarr/tvseries:/data/tvshows \
-v /home/me/radarr/movies:/data/movies \

this is the actual image you need to pull in order to install jellyfin

lscr.io/linuxserver/jellyfin:latest


btw are you on different user than root?
 
At this point, everything is going over my head. Don't know if I am a different user than root but I need sudo command before docker to run it.
 
yes sudo will run it as the root user. can you show the command? maybe its a formatting issue

also avoid spaces in file paths in linux. i would suggest renaming it to "movies_and_series" and so on.
 
@JB701 Thanks a ton man. "also avoid spaces in file paths in Linux. I would suggest renaming it to "movies_and_series" and so on." this was the culprit.
Also, this seems silly that in Linux spaces in the file path are prohibited.
 
I have a followup question.

"sudo docker run -v /media/amit/Multimedia/movies_series/Movies/hollywood_movies:/media jellyfin/jellyfin:latest" This command worked as I wanted but it created a new container from scratch. Is there a way to add volume to the existing container without creating a new one as I will be adding more directories?

Also, I think I made a little mistake in the above command as the host directory should be up to /media/amit/Multimedia/ then
I can easily add other directories to separate catagory.
 
and I thought linux is easy. lol..

also, my dumb a** didn't know that with portainer I can easily mount volume to a container.
 
Back