Using docker in replit

I am working on a project that utilizes Docker for its containerization needs. I am wondering if it is possible to host this project on Replit?

If I try to use Docker Compose this happens:

docker-compose -f docker-compose.yml up -d

docker-compose: command not installed, but was located via Nix.
Would you like to run docker-compose from Nix and add it to your replit.nix file? [Yn]: Adding docker_compose to replit.nix
success
/nix/store/5ab8gb9gdhy854nm0n3m827f7z7vbjcb-docker-compose-1.29.2
Traceback (most recent call last):
  File "/nix/store/zwbm7z914qbyz6gzsw5346la25f2gmh2-python3.9-urllib3-1.26.6/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/nix/store/zwbm7z914qbyz6gzsw5346la25f2gmh2-python3.9-urllib3-1.26.6/lib/python3.9/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/nix/store/nki9ywqzbvz68vr75kn2r7g1q84f5agy-python3-3.9.6/lib/python3.9/http/client.py", line 1257, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/nix/store/nki9ywqzbvz68vr75kn2r7g1q84f5agy-python3-3.9.6/lib/python3.9/http/client.py", line 1303, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/nix/store/nki9ywqzbvz68vr75kn2r7g1q84f5agy-python3-3.9.6/lib/python3.9/http/client.py", line 1252, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)```

https://replit.com/talk/ask/How-to-install-Docker/39255
Not sure if this helps.

1 Like