question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

datasette --root running in Docker doesn't reliably show the magic URL

See original GitHub issue

I followed these steps:

docker run datasetteproject/datasette pip install datasette-upload-csvs

docker commit $(docker ps -lq) datasette-with-plugins

docker run -p 8001:8001 -v $(pwd):/mnt datasette-with-plugins datasette --root -p 8001 -h 0.0.0.0

Visited: http://127.0.0.1:8001/-/plugins

image

Visited: http://localhost:8001/-/upload-csvs

image

I may have missed a step?

Thank you.


Ubuntu 22.04.1 LTS

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
simonwcommented, Dec 13, 2022

When you run --root you need to follow the special link that gets output to the console:

% datasette --root
http://127.0.0.1:8001/-/auth-token?token=036d8055cc8000e9667f21c1dd08722a9358c066463873ad9566d23d88765c52
INFO:     Started server process [53934]
INFO:     Waiting for application startup.
INFO:     Application startup complete.

That /-/auth-token?... link is the one that sets the cookie and lets you in.

0reactions
davidhaleycommented, Dec 16, 2022

Awesome. Thank you @simonw.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >
9 Common Dockerfile Mistakes - Runnablog
Another issue is with running apt-get update in a different line than running your apt-get install command. The reason why this is bad...
Read more >
Run X application in a Docker container reliably on a server ...
Any X application rather uses the hostname in $DISPLAY, typically "localhost" and connects using TCP. This is then tunneled back to the SSH ......
Read more >
Build a Simple .NET Core App on Docker - Okta Developer
The core secret to improving reliability is fewer moving parts. In this post, I'll cover how you can use Docker to run your...
Read more >
Creating a container image for use on Amazon ECS
Amazon ECS uses Docker images in task definitions to launch containers. Docker is a technology that provides the tools for you to build,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found