# Neo4j in Docker plugins are not recognized

**URL:** <https://community.neo4j.com/t/neo4j-in-docker-plugins-are-not-recognized/60421>\
**Category:** Neo4j Graph Platform\
**Tags:** migrated\
**Created:** [September 27, 2019, 3:16pm UTC](https://community.neo4j.com/t/neo4j-in-docker-plugins-are-not-recognized/60421 "2019-09-27T15:16:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin\_ebert](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/martin_ebert/32/6542_2.png) [@martin\_ebert](https://community.neo4j.com/u/martin_ebert)\
**Post date:** [September 27, 2019, 3:16pm UTC](https://community.neo4j.com/t/neo4j-in-docker-plugins-are-not-recognized/60421/1 "2019-09-27T15:16:28Z")

</div>

When I run Neo4j in Docker, the plugins don't work. In my case: APOC and ALGO.

1.What did I do? Dockerfile created.

```auto
FROM neo4j:3.5.8

# Enable APOCs
ENV APOC_VERSION 3.5.0.4
ENV APOC_URL https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/${APOC_VERSION}/apoc-${APOC_VERSION}-all.jar
RUN (cd /var/lib/neo4j/plugins && curl -OL $APOC_URL)

# Enable Algorithms
ENV ALGOS_VERSION 3.5.8.0
ENV ALGOS_URL http://s3-eu-west-1.amazonaws.com/com.neo4j.graphalgorithms.dist/neo4j-graph-algorithms-$ALGOS_VERSION-standalone.jar
RUN (cd /var/lib/neo4j/plugins && curl -OL $ALGOS_URL)

EXPOSE 7474 7473 7687

RUN apt-get update
RUN apt-get install nano

CMD ["neo4j"]

```

1. Build image

```auto
docker build --tag=myimage .

```

1. Run Container

```auto
docker run \
    --name my_container \
    -p 7474:7474 -p 7687:7687 \
    -v $HOME/neo4j/data:/data \
    -v $HOME/neo4j/logs:/logs \
    -v $HOME/neo4j/plugins:/plugins \
    -e NEO4J_dbms_memory_pagecache_size=4G \
    -e NEO4J_apoc_export_file_enabled=true \
    -e NEO4J_apoc_import_file_enabled=true \
    -e NEO4J_apoc_import_file_use __neo4j__ config=true \
    -e NEO4J_dbms_security_procedures_unrestricted=apoc.\\\*,algo.\\\* \
    -e NEO4J_AUTH=neo4j/neo4j \
    myimage

```

In the config file the highlighted definition looks a little bit wrong.  
 ![2X_9_902e657a04212d8fcf73a5aa82dbea84203040fb.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/a/1/a15fdd1bbfbb4390c47a37138f8906b25f435a0d.png "2X\_9\_902e657a04212d8fcf73a5aa82dbea84203040fb.png")

But even if I correct this manually

```auto
dbms.security.procedures.unrestricted=apoc.*,algo.*

```

and use "neo4j restart", I can't use apoc or algo functionality.

![2X_a_a8b1be1c379e257417140e1c296fb25d4e7e6fab.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/a/1/a18624afd6aae808814fc1c10c3d8e1232782adb.png "2X\_a\_a8b1be1c379e257417140e1c296fb25d4e7e6fab.png")

How do I get this to work?

The plugins themselves are in the right folder:  
 ![2X_9_93100d8469851f78a976eb2b7dd5bd9e9e67bae0.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/8/b/8bcbbc8415c244764a8820dce0e6b34b9802dc85.png "2X\_9\_93100d8469851f78a976eb2b7dd5bd9e9e67bae0.png")

---

<div class="post-metadata">

**Author:** ![sngermiyanoglu](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sngermiyanoglu](https://community.neo4j.com/u/sngermiyanoglu)\
**Post date:** [June 20, 2022, 10:47pm UTC](https://community.neo4j.com/t/neo4j-in-docker-plugins-are-not-recognized/60421/2 "2022-06-20T22:47:22Z")

</div>

I have the same issue regarding apoc running in docker.

I have the same issue How can I fix it ?

Here is the link : [https://community.neo4j.com/t5/drivers-stacks/neo4j-with-shortestpath-by-using-many-cities-with-its-routes/m-p/56934#M4762](https://community.neo4j.com/t5/drivers-stacks/neo4j-with-shortestpath-by-using-many-cities-with-its-routes/m-p/56934#M4762)
