Docker Q …
I’m trying to cache a number of other docker containers on Codespaces. So that when the codespace image is started, the other containers are ‘instantly’ available.
I’ve gotten this to work in the postCreateCommand, but that happens after VS code has started and can still take a while…
Thus the image may not be available when a user start to use their codespace in earnest.
I tried to add
Docker pull image --quiet
To the docker file of the codespace, but that seems to lead to an infinite loop, eventually crashing the codespace creation.
From image
User codespace
Run docker pull image --quiet
If I’m understanding correctly, the docker image shouldn’t be preloaded on the containers, but on the containers host… Anyone have a better idea on how to preload/cache the image other than waiting for the container to start and then running docker pull?