def contain(command, image_name, image_dir, container_id, container_dir):
# TODO: would you like to do something before chrooting?
# print('Created a new root fs for our container: {}'.format(new_root))
# TODO: chroot into new_root
# TODO: something after chrooting?
os.execvp(command[0], command)
评论列表
文章目录