Are you using -v for the data directory when launching the docker image?
docker run -it -v $HOME/blockstack-dev-data:/data/ blockstack/blockstack-core:clarity-developer-preview bash
You can edit files in your normal environment in ~/blockstack-dev-data . Maybe create a directory contracts next to data and then in the docker image call clarity-cli check /data/contracts/tokens.clar /data/db. Does it make sense?
For sqlite db, you can use it in your normal enviroment like this: sqlite3 ~/blockstack-dev-data/db
Sorry this took so long, but I finally got the hello-world.clar to work. I have learned much
in the process and am looking forward to studying this some more.
Thank you to moxiegirl and friedger for your helpful responses.
The thing that hindered me the most was my lack of familiarity with docker. It would have been nice to see a list of prerequisite knowledge or more explanation.
Also, I would have liked to see the setup commands before the hello-world example, since it was presented first.
Docker is not necessarily required. Many people find it more useful as, with the exception of running Docker, the dependencies and the running processes are isolated. If you don’t want to run Docker, you can install the Clarity dependencies and the source yourself. That is documented here:
You may also find it useful to simply start with Clarity, that is here: