Docker development containers with my profile configuration.
./devcontainerscript for Docker commands automation- Debian slim images
- Rootless containers
- Zsh shell
./devcontainer --helpFind container IP address:
./devcontainer network inspect bridge | jq '.[].Containers'
Every environment is based on base image. The base image must be built prior to building any other environment:
./devcontainer buildBuild a specific environment image:
./devcontainer --env <environment_id> buildRun environment container:
./devcontainer --env <environment_id> runExample:
./devcontainer --env python build --no-cache
./devcontainer --env python run --rmEnvironment id: base
To update system packages in existing base image, use Docker --no-cache flag:
./devcontainer build --no-cacheYou must rebuild environment images and create new containers as well.
Environment id: nodejs
Features:
Environment id: python
Features:
Environment id: go
Features:
If you encounter issues with missing libraries, add --platform linux/x86_64 flag after native Docker commands:
$ ./devcontainer --env <environment> build --platform linux/x86_64
$ ./devcontainer --env <environment> run --platform linux/x86_64