Package com.github.dockerjava.api.command

Examples of com.github.dockerjava.api.command.TagImageCmd


       
        String repository = DockerHelper.getProperty(DockerConstants.DOCKER_REPOSITORY, configuration, message, String.class);
  
        String tag = DockerHelper.getProperty(DockerConstants.DOCKER_TAG, configuration, message, String.class);
      
        TagImageCmd tagImageCmd = client.tagImageCmd(imageId, repository, tag);

        Boolean force = DockerHelper.getProperty(DockerConstants.DOCKER_FORCE, configuration, message, Boolean.class);
       
        if (force != null && force) {
            tagImageCmd.withForce();
        }
            
        return tagImageCmd;

    }
View Full Code Here

TOP

Related Classes of com.github.dockerjava.api.command.TagImageCmd

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.