There are some versions where devcontainer image is not officially available. Follow the steps to build your own.
-
Copy
base.Dockerfileand name it accordingly, e.g.Dockerfile.python3.6 -
Modify the first two lines to the image you want
# ARG VARIANT=3-bullseye # comment out this line
FROM python:3.6-buster # modify this line to the version you want - Build the image
# in .devcontainer folder
# put the tag you want, for consistency, use devcon-<variant>:latest
# add registry path in the tag if you wish to upload to gitlab container registry
docker build -t devcon-python3.6 -f Dockerfile.python3.6 .- (Optional) Push to Registry
# make sure you have already login to the registry
docker push <registry>/devcon-python3.6:latest