Skip to content
Advertisement

Tag: volumes

How to pass volume to docker container?

I am running the below docker command : docker run -d -v /Users/gowthamkrishnaaddluri/Documents/dfki_sse/demo:/quantum-demo/ -it demo python3 /quantum-demo/circuit.py –res ‘./’ I am trying to run the above command in python and I have the code as follows: container = client.create_container( image=’demo’, stdin_open=True, tty=False, command=”python3 /quantum-demo/circuit.py –res=’./'”, volumes=[‘/Users/gowthamkrishnaaddluri/Documents/dfki_sse/demo’, ‘/quantum-demo/’], detach=True, ) client.start(container=container.get(‘Id’)) I am not able to see the files which get

Advertisement