I'm new in docker, try to google this issue, bit found nothing.

I have to create nexus image from sonatype/nexus3 and change password in admin.password file after creating image.

It's my **Dockerfile**:

```
FROM sonatype/nexus3

WORKDIR /nexus-data
RUN ["/bin/bash", "-c", "echo root >> admin.password"]

```

and when i check the file admin.password (**docker exec <container> cat admin.password**) i have this result:
**root**

And Authorization works if i run continer from sonatype/nexus3 image from docker hub (with default UUID password).

What should i do?

I am thinking that maybe i rewrite admin profile or delete it somehow?