Last active
July 18, 2023 18:28
-
-
Save dinhanhhuy/b36e7e5e7aaf12f5262b82404085a5ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create mount namespace "some-sql" | |
$ unshare --mount some-sql start | |
# mount the host folder to "some-sql" namespace | |
# similar to docker command --volume | |
$ mount --bind /var/lib/mysql /my/own/datadir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment