How to use PICRUSt2 on docker image?

Sorry for bothering you with it. I have trouble with installation.
I’ve found a tutorial for it Installing Community Plugins in Docker but I got the error below.

Firstly, I run the following:

docker run --platform linux/amd64 --rm -it --name my-custom-container quay.io/qiime2/core:2021.11 /bin/bash
conda install q2-picrust2=2021.11 -c conda-forge -c bioconda -c gavinmdouglas
qiime dev refresh-cache

Secondly, I opened another terminal:

docker ps
CONTAINER ID   IMAGE                         COMMAND       CREATED              STATUS              PORTS     NAMES
2d83a3cc8c30   quay.io/qiime2/core:2021.11   "/bin/bash"   About a minute ago   Up About a minute             my-custom-container
sha256:941105712b44c5f910c1642d01d360b26e4b539ea1e8ff476bcdb9cdff7f21fb

Then, I checked a new image

docker images
REPOSITORY                                    TAG                   IMAGE ID       CREATED          SIZE
thermokarst-qiime2/2021.11-with-q2-picrust2   latest                941105712b44   49 minutes ago   5.75GB

docker run --platform linux/amd64 --rm -it \
    -u $(id -u):$(id -g) \
    -v $(pwd):/data \
    thermokarst-qiime2/2021.11-with-q2-picrust2:latest \
        qiime picrust2
Error: QIIME 2 has no plugin/command named 'picrust2'.

My configuration is:
System versions
Python version: 3.8.12
QIIME 2 release: 2021.11
QIIME 2 version: 2021.11.0
q2cli version: 2021.11.0

Installed plugins
alignment: 2021.11.0
composition: 2021.11.0
cutadapt: 2021.11.0
dada2: 2021.11.0
deblur: 2021.11.0
demux: 2021.11.0
diversity: 2021.11.0
diversity-lib: 2021.11.0
emperor: 2021.11.0
feature-classifier: 2021.11.0
feature-table: 2021.11.0
fragment-insertion: 2021.11.0
gneiss: 2021.11.0
longitudinal: 2021.11.0
metadata: 2021.11.0
phylogeny: 2021.11.0
quality-control: 2021.11.0
quality-filter: 2021.11.0
sample-classifier: 2021.11.0
taxa: 2021.11.0
types: 2021.11.0
vsearch: 2021.11.0

What should I do to fix this problem? Thanks.

1 Like