如何在docker

如何在docker,第1张

如何在docker

以下是进行卷绑定的当前工作方式

volumes= ['/host_location']volume_bindings = {         '/host_location': {  'bind': '/container_location',  'mode': 'rw',         },}host_config = client.create_host_config(         binds=volume_bindings)container = client.create_container(         image='josepainumkal/vwadaptor:jose_toolUI',         name=container_name,         volumes=volumes,         host_config=host_config,) response = client.start(container=container.get('Id'))


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/4927512.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-12
下一篇2022-11-12

发表评论

登录后才能评论

评论列表(0条)

    保存