I work in a Docker container that has a bunch of other Docker containers running inside. Every time the outer container is destroyed, I see that the images that were previously pulled from Docker Hub have to be pulled again.
In the example of Redis, I see the following
docker run --name my_redis -p 6379:6379 -d redis
Unable to find image 'redis:latest' locally
latest: Pulling from library/redis
and the process is taking a while to complete.
Is there a way to cache Redis so that the outer container can pick it up? Perhaps I just need to volume mount appropriate directories. Any advice is appreciated!