question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[New-Feature]Adding Docker Support to Pennylane

See original GitHub issue

Issue description

Just wanted to know if Docker-Support is in Check-list, I would be able to add Docker-Support for Pennylane.

Adding Dockerfile to Build penylane using Docker.

  • Expected behavior: Build and entire system using Docker.

To build from source

docker build -t pennylane:docke_build .

To Run Python script using pennylane

docker run -it --rm -v $PWD:/tmp -w /tmp pennylane/pennylane python ./script.py

To Run pennylane as-Service using jupyter.

docker run -it -p 8888:8888 pennylane/pennylane:nightly-jupyter

Additional information

Other Libraries doing it:

Pytorch: https://github.com/pytorch/pytorch/blob/master/Dockerfile

Tensorflow: https://www.tensorflow.org/install/docker

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
arshpreetsinghcommented, Jun 3, 2021

@albi3ro Well I have completed pennylane-plain, Pennylane-TF and Pennylane-Torch docker images, Will be able to share those by tomorrow for review.

As I can see Qchem has script for dependencies installation(https://github.com/PennyLaneAI/pennylane/blob/master/qchem/install-dependencies.sh) which could be easily reused for creation of Dockerfile for pennylane-Qchem.

0reactions
trbromleycommented, Jun 10, 2021

Thanks @arshpreetsingh, we have linked https://github.com/PennyLaneAI/pennylane/pull/1391 so that it will automatically close this issue once merged 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation and dependencies - PennyLane Documentation
Dependencies¶. PennyLane requires the following libraries be installed: ... Docker support exists for building using CPU and GPU (Nvidia CUDA 11.1+) images.
Read more >
Docker Support
Find answers to your questions with Docker Support. Open a new case, view Docker Docs, visit our community forums, or join our Slack...
Read more >
Developers | Docker
The world's leading service for finding and sharing container images with your team and the Docker community. For developers and those experimenting with ......
Read more >
Introducing the Docker+Wasm Technical Preview
Learn more about the Docker+Wasm Technical Preview that enables all developers to quickly & easily build applications that target Wasm ...
Read more >
Docker Engine post-installation steps
On Debian and Ubuntu, the Docker service starts on boot by default. To automatically start Docker and containerd on boot for other Linux...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found