Can I run docker in codespaces? #48003
-
Select Topic AreaQuestion BodyI'm doing a course from frontend masters about sql which require to setup docker. Unfortunately, my pc is really old and only have 4GB pf ram. So, I was wandering if I could follow along with the course using codespaces. If possible, I'd really appreciate your help setting up my codespace since I don't know anything about docker. Here is the docker setup from the course: https://sql.holt.courses/lessons/welcome/docker Two containers I'll need: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Just as a brief answer, yes you can. You don't actually need to run Docker inside of your codespace, as it is already a Docker container of its own. What you should do is define a devcontainer config along with a docker-compose config, and then just create a new codespace not from scratch, but from your devcontainer config. |
Beta Was this translation helpful? Give feedback.
-
Yes, this is possible. I just tried it today. |
Beta Was this translation helpful? Give feedback.
Just as a brief answer, yes you can. You don't actually need to run Docker inside of your codespace, as it is already a Docker container of its own. What you should do is define a devcontainer config along with a docker-compose config, and then just create a new codespace not from scratch, but from your devcontainer config.