Documentation Center

Pushing the retagged Docker images to your own Docker registry

About this task

The images can be pushed individually or in one step, like in the example below.

Procedure

Run the following command to push the retagged Docker images in one step.
docker image list | grep YOUR_REMOTE_REGISTRY | awk '{print $1 ":" $2}' | xargs -I % docker push %

The script above finds all images tagged for YOUR_REMOTE_REGISTRY and attempts to push them.