Docker images caching on the camera #66
-
When testing https://github.com/AxisCommunications/acap-computer-vision-sdk-examples/tree/main/object-detector-python example, I noticed that model docker image is cached somewhere in the camera. When I change Dockerfile.model and config/env.aarch64.artpec8 , rebuild and load the image to the camera (please see commands below), it has no effect. Build and upload inference modelsdocker build . -f Dockerfile.model -t $MODEL_NAME --build-arg ARCH The following command Restarting Docker from camera web interface does not help. Removing and installing Docker from camera web interface does not help does not help either. The only reliable way to make the camera see new image is to stop and remove docker, log in to the camera, remove physically docker files from the storage and re-install Docker again. This is very inconvenient |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Igor You have to delete the old docker volumes from the camera. |
Beta Was this translation helpful? Give feedback.
Hi Igor
You have to delete the old docker volumes from the camera.
The clean way is to
docker-compose --tlsverify -H tcp://$AXIS_TARGET_IP:$DOCKER_PORT --env-file ./config/env.$ARCH.$CHIP down -v
like explained in the example, after stopping the container.