mysql-container
mysql-container copied to clipboard
how to switch user to root (not mysql)
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.
You can run 'docker exec -it --user root