Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to switch user to root (not mysql) #233

Open
weixudonga opened this issue Aug 1, 2018 · 2 comments
Open

how to switch user to root (not mysql) #233

weixudonga opened this issue Aug 1, 2018 · 2 comments

Comments

@weixudonga
Copy link

No description provided.

@omron93
Copy link
Contributor

omron93 commented Aug 2, 2018

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.

@DangerGuys
Copy link

You can run 'docker exec -it --user root /bin/bash' into the container.Then run 'su root' change user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants