# Installing pynq package in an ubuntu container (Docker)

**URL:** <https://discuss.pynq.io/t/installing-pynq-package-in-an-ubuntu-container-docker/3041>\
**Category:** Support\
**Created:** [September 17, 2021, 10:32am UTC](https://discuss.pynq.io/t/installing-pynq-package-in-an-ubuntu-container-docker/3041 "2021-09-17T10:32:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubenlesmes](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rubenlesmes/32/2357_2.png) [@rubenlesmes](https://discuss.pynq.io/u/rubenlesmes)\
**Post date:** [September 17, 2021, 10:32am UTC](https://discuss.pynq.io/t/installing-pynq-package-in-an-ubuntu-container-docker/3041/1 "2021-09-17T10:32:50Z")

</div>

Hi.

I’m running Docker on a Ultra96-V2 board with PYNQ v2.6 image, based on an ubuntu image I am trying to install pynq package to access the programmable logic from inside the container. I have tried instead of just pip installing the pynq package to run the compilation of the DPU-PYNQ repository without success.

I end up running into errors every time, libraries, missing apps, etc. This is the current Dockerfile I’m trying to build.

```auto
FROM ubuntu

RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y apt-utils python3-dev sudo build-essential python3-pip

RUN sudo pip3 install --upgrade --upgrade-strategy only-if-needed pynq

CMD ["bash"]

```

Is there any example on how to do this in an easy way or any advice?
