public ClientResponse push ( final String name ) throws DockerException { if ( name == null ) { throw new IllegalArgumentException ( "name is null" ) ; } try { final String registryAuth = registryAuth ( ) ; return client . resource ( restEndpointUrl + "/images/" + name ( name ) + "/push" ) . header ( "X-Registry-Auth" , registryAuth ) . accept ( MediaType . APPLICATION_JSON ) . post ( ClientResponse . class ) ; } catch ( UniformInterfaceException e ) { throw new DockerException ( e ) ; } }
Push the latest image to the repository .