Skip to content

Problems running on Docker, maybe NAS #1

Closed Answered by elonen
elonen asked this question in Q&A
Discussion options

You must be logged in to vote

There are basically two ways of mounting data directories on Docker:

  1. volumes (not fast to explain, google this)
  2. bind mounts to local directories

Option 2 is what the example makefile uses. Here's roughly how to mimic it:

docker run --rm -it -p 127.0.0.1:8095:8095 --mount type=bind,source="$(pwd)/my_data_dir",target=/mnt/clapshot-data  clapshot:latest-demo

This will mount your local directory ./my_data_dir to /mt/clapshot-data inside the Docker image.

Based on the log you pasted, it looks like you are using one of the startup scripts from test/ pretty much as is. If you look inside it, you'll notice that it uses DIR="/mnt/clapshot-data/data", so you might need to mkdir ./my_data_dir/data

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
2 replies
@elonen
Comment options

elonen Mar 27, 2023
Maintainer Author

@krth8
Comment options

Comment options

elonen
Mar 27, 2023
Maintainer Author

You must be logged in to vote
10 replies
@elonen
Comment options

elonen Mar 28, 2023
Maintainer Author

@krth8
Comment options

@elonen
Comment options

elonen Mar 28, 2023
Maintainer Author

@elonen
Comment options

elonen Mar 28, 2023
Maintainer Author

@krth8
Comment options

Answer selected by elonen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants