def container_exec(binary, container_image, container_args=[]):
    '''
    Build the docker CLI to run a command inside a container
    '''

    container_binary = os.getenv('CEPH_CONTAINER_BINARY')

    command_exec = [container_binary, 'run', '--rm', '--net=host']
    command_exec.extend(container_args)
    command_exec.extend([
        '-v', '/etc/ceph:/etc/ceph:z',
        '-v', '/var/lib/ceph/:/var/lib/ceph/:z',
        '-v', '/var/log/ceph/:/var/log/ceph/:z',
        '--entrypoint=' + binary,
        container_image,
    ])

    return command_exec

    Build the docker CLI to run a command inside a container
    
library/radosgw_zone.py