Open weixudonga opened 6 years ago
Mysql user is explicitly specified in Dockerfile. So default will be always this.
Dockerfile
Changing it depends on the way you are using the image. For example with docker run you can use -u 0 parameter to run container with different user.
docker run
-u 0
You can run 'docker exec -it --user root /bin/bash' into the container.Then run 'su root' change user.
Mysql user is explicitly specified in
Dockerfile
. So default will be always this.Changing it depends on the way you are using the image. For example with
docker run
you can use-u 0
parameter to run container with different user.