# Docker authentication failure

**URL:** <https://community.neo4j.com/t/docker-authentication-failure/73121>\
**Category:** Neo4j Graph Platform\
**Created:** [March 21, 2025, 6:31pm UTC](https://community.neo4j.com/t/docker-authentication-failure/73121 "2025-03-21T18:31:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alokesh1](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/alokesh1/32/33919_2.png) [@alokesh1](https://community.neo4j.com/u/alokesh1)\
**Post date:** [March 21, 2025, 6:31pm UTC](https://community.neo4j.com/t/docker-authentication-failure/73121/1 "2025-03-21T18:31:17Z")

</div>

Please keep the following things in mind:

What am I trying to achieve ?

I am trying to install and setup neo4j and load data and complete the entire proj through docker

# neo4j

FROM neo4j:latest

# here i set the password after installation

RUN pip install --no-cache-dir neo4j pandas pyarrow  
ENV NEO4J\_AUTH=neo4j/project1phase1  
RUN echo "NEO4J\_AUTH=neo4j/newpassoword" \>\> /etc/environment

I tried to set this in docker but I am unable to login and run the files below due to authentication failure

(Attempt 1/10) Error: {code: Neo.ClientError.Security.Unauthorized} {message: The client is unauthorized due to authentication failure.}

# some data stuff

# Run the data loader script

RUN chmod +x /cse511/data\_loader.py &&   
neo4j start &&   
python3 data\_loader.py &&   
neo4j stop

- neo4j version -2025.02.0, desktop version
- I want to set this password directly in docker file after installation , I fail to do so.  
please let me know how I can set this before I load the data and I cannot make change the how i load the data.
