MCPcopy
hub / github.com/docker/docker-py / run_with_volume

Method run_with_volume

tests/integration/api_container_test.py:635–649  ·  view source on GitHub ↗
(self, ro, *args, **kwargs)

Source from the content-addressed store, hash-verified

633 assert mount_data['Propagation'] == propagation
634
635 def run_with_volume(self, ro, *args, **kwargs):
636 return self.run_container(
637 *args,
638 volumes={self.mount_dest: {}},
639 host_config=self.client.create_host_config(
640 binds={
641 self.mount_origin: {
642 'bind': self.mount_dest,
643 'ro': ro,
644 },
645 },
646 network_mode='none'
647 ),
648 **kwargs
649 )
650
651 def run_with_volume_propagation(self, ro, propagation, *args, **kwargs):
652 return self.run_container(

Callers 3

setUpMethod · 0.95

Calls 2

create_host_configMethod · 0.80
run_containerMethod · 0.45

Tested by

no test coverage detected