This is my solution in Go for the "Build Your Own Docker" Challenge.
Note: Head over to codecrafters.io to try the challenge yourself.
To run tests locally (linux only!), the following need to be built and installed accordingly:
- Execute a program
- Wireup stdout & stderr
- Handle exit codes
- Filesystem isolation
- Process isolation
- Fetch an image from the Docker Registry
- Passing all stages from docker-tester
- Implement the missing features from Coding Challenges
- Explorer more about
namespaces
- Properly mount
/dev
,/proc
(?!?!) - Apply the config from the manifest (e.g. hostname, environment variables, etc.)