Docker in replit

Question:
How can I get Docker to run in Replit?
Repl link:
https://replit.com/@JasonRoman/docker-test

Already tried:
https://replit.com/talk/ask/How-to-install-Docker/39255

install-pkg docker
 -> command not found

pkg-install docker docker.io
 -> command not found

docker
 -> multiple versions found:
    - docker
    - docker-client
 -> both run successfully, but the docker daemon is not started.

 The Docker website suggests this:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
 but I don't have sudo access.
2 Likes

I don’t think docker works in replit, as it requires root

2 Likes

I think dragon is right.

2 Likes

As we all know. (Hopefully), is that root (sudo) in this case, cannot work on replit for administrative purposes.

2 Likes

For EDUCATIONAL purposes, what if you gained root access on replit and did that? Then maybe it would work.

2 Likes

Perhaps it would work, then.

1 Like

How about Podman? It can use the Docker registry and doesn’t require root privileges.

Demo here: Replacing Docker with podman? The results are not what I expected! (Part 1/2) - YouTube

3 Likes

That might actually work! As long as it is on nix

1 Like

Hmm… Let me try to use Podman to replace docker

2 Likes

But I got lots of errors when trying to run podman

1 Like

yeah, unfortunately podman can’t work either

3 Likes

Maybe this’ll be possible soon :eyes:

1 Like