Pushing an image to VIC Appliance registry that has been previously deleted
search cancel

Pushing an image to VIC Appliance registry that has been previously deleted

book

Article ID: 317020

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides details on how to push an image to the VIC Appliance Registry which has been previously pushed to, and deleted.

Symptoms:
You see a message similar to the following when pushing an image that has been previously pushed and deleted from the VIC Appliance:
 
The push refers to repository [VIC_APPLIANCE_FQDN/PROJECT_NAME/IMAGE:TAG]
ID: Layer already exists
ID: Layer already exists
ID: Layer already exists
ID: Layer already exists
ID: Layer already exists
latest: digest: sha256:CHECKSUM_VALUE size: 1367


Environment

VMware vSphere Integrated Containers 1.5.x

Resolution

This is a known issue affecting vSphere Integrated Containers. There is currently no resolution.

Workaround:
  1. Open a SSH session to the VIC Appliance
  2. Run the following commands to clear the records in the database:
  • Launch a bash shell into the Redis Container of the VIC Appliance
docker exec -it redis /bin/bash
  • Launch the redis-cli application
redis-cli
  • Switch to database 1
select 1
  • Execute the Flush DB command
flushdb
  • Exit the redis-cli
exit
  • Exit the BASH Shell
exit
  1. Push the docker image to the VIC Appliance registry