Closed salicius closed 1 year ago
Hi, thanks for checking out Photo Stream.
-p 4000:4000
and then open localhost:4000
in your browser on the same PC.-v /your/local/folder/:/photo-stream/photos
. Make sure there's a folder called original
inside your local folder which contains the photos.bundle exec jekyll serve
Hi, thanks for checking out Photo Stream.
- You should map port 4000 like
-p 4000:4000
and then openlocalhost:4000
in your browser on the same PC.- With Docker you should look into volume mounts e.g.
-v /your/local/folder/:/photo-stream/photos
. Make sure there's a folder calledoriginal
inside your local folder which contains the photos.- When cloned (you don't need to fork just for checking it out) just run this command:
bundle exec jekyll serve
Ok thank you, I added the folder "original" following the path I described in my point no. 2 (sorry I don't get how to "look into volume mounts" how you said):
but localhost shows all images with the broken thumbnail:
I actually didn't know Docker Desktop allows to add files/folders like that. Anyway, your photos need to end up at /photo-stream/photos/original/
in your container.
I strongly advise you to read more about the docker run
command though, especially about volumes.
Ok thanks, I'm trying to figure out how to access the volume to change the files inside it but it seems that on macOS Docker does not allow this directly (https://stackoverflow.com/questions/54886883/where-docker-volumes-are-located) and currently I can only do it through Docker Desktop.
You don't need to use a volume, you can also mount an existing folder like that -v /Users/yourname/Desktop/photo-stream-photos/:/photo-stream/photos
when starting the container.
Ok got it, thanks a lot!
Hi, I'm starting right now with docker so please forgive my ignorance. I have some questions:
1) I trying to start this docker image so with the terminal I used this commands: but then if I open my browser at localhost:8080 it shows nothing. Where am I going wrong?
2) To edit images files do I have to go to Docker Desktop -> Containers -> My Container -> Files and here create a folder named "original" ?
3) Without docker if I fork the repo and clone it locally with vscode how can I run it in my localhost ?