OpenQP_Docker_Image - Open-Quantum-Platform/openqp GitHub Wiki

Quick Start Guide for Using the OpenQP Docker Image

1. Pull the Docker Image

To pull the OpenQP Docker image, run:

docker pull openqp/openqp:v1.0

2. Running the Docker Container

To start an interactive session inside the Docker container, use:

docker run -it openqp/openqp:v1.0

This opens a command-line interface where you can run OpenQP commands.

3. Running OpenQP on Internal Files

Inside the container, use OpenQP with an internal input file like so:

openqp <input_file>

Replace <input_file> with the path of your input file in the container.

4. Using External Files

To use files from your local machine, mount a directory when starting the container. For example:

docker run -it -v /path/to/local/files:/data openqp/openqp:v1.0

This mounts the local /path/to/local/files directory to /data inside the container. You can then access and use external files as follows:

openqp /data/input_file.inp

This command processes the input file input_file.inp from your local machine.

5. Saving Output Files

Any output files created in the mounted /data directory will be saved in /path/to/local/files on your local machine.

Stopping the Container

To exit the container, type:

exit

Back

⚠️ **GitHub.com Fallback** ⚠️