#
#
DOCKER_SOCK = "/var/run/docker/docker.sock"
DOCKERFILE = """FROM scratch
ADD %(archive)s /
"""
"""HTTPConnection for local UNIX sockets."""
# superclass uses self.sock, he'll handle cleanup
try:
# expect standard success status
if resp.status != 200:
try:
return data
try:
# expect success and no content
if resp.status != 204:
if self.verbose:
else:
return output
try:
try:
cmd = ['/usr/lib/brand/solaris-oci/mkimage-solaris']
if args.devbuild:
if args.profile:
try:
# build rootfs, send output to stdout
try:
try:
print "Creating container rootfs from host publishers..."
try:
print "Creating Docker base image '%s'..." % tag
print "Build complete."
try:
print "unable to query api for container list: %s" % e
try:
print "shutdown container [%s]" % cid
print "unable to kill container [%s]: %s" % (cid, e)
print "Shutting down all running container instances..."
return
print "NOTE: unable to gracefully shutdown all containers"
return parser_main
if __name__ == "__main__":