Couchbase enterprise-6.6.1 - python not found

Hi Team,

I am trying to upgrade the couchbase version from enterprise-6.0.3 to 6.6.1 version, but the problem when I am trying to build the image it says python not found, the same thing works fine in 6.0.3 version.

below is my dockerfile.

FROM couchbase:enterprise-6.6.1

WORKDIR /usr/scripts/

COPY py-scripts/* ./

RUN curl -O
&& python
&& pip install awscli
&& pip install --upgrade rsa
&& pip install requests \

Please suggest me why it says python not found and how can I resolve the same.

Python is installed, but bundled as part of Couchbase, not the base operating system (as we’d have little control over versioning otherwise).
Run docker inspect image couchbase/server:6.6.1 and you should see something similar to:

        "Env": [

tl;dr use an absolute path or whatever. Note, one thing that caught me out before is even though it’s called python and pip, it’s actually python 3, so be aware of this.

Also I’m by no means an expert!

Just had a deeper inspection myself. While that may have been true of earlier versions, on 6.6.0 I get:

$ docker run --rm -ti couchbase/server:6.6.0 bash
root@98fe1e09ec21:/# which python
root@98fe1e09ec21:/# which python3


root@98fe1e09ec21:/# find /opt/couchbase/ -name pip

So it may have been removed from the PATH, but it is still there. Now whether you should setup the PATH to point to the Couchbase version, or just install the OS’s version I’ll leave to an expert, but that should help you out in the short term.

Hi @simon.murray

Thanks the for reply. sorry I didn’t get it properly
This is my docker file, I want to install python 3, when I tried with RUN apt-get install -y python3.6 it says python3.6 not found. can you please suggest how can I install python3x version.

When I do RUN apt-get install -y python its installing python 2.7 version.

FROM couchbase:enterprise-6.6.1
WORKDIR /usr/scripts/

RUN apt-get update
RUN apt-get install -y python3.6

You get the latest python (3.8 or maybe 3.9) with apt-get install python3. If you really need python3.6, you’d need to add the deadsnakes ppa to get it – something like :
add-apt-repository ppa:deadsnakes/ppa
apt update