Skip to content

Instantly share code, notes, and snippets.

@dinhanhhuy
Last active July 18, 2023 18:28
Show Gist options
  • Save dinhanhhuy/b36e7e5e7aaf12f5262b82404085a5ae to your computer and use it in GitHub Desktop.
Save dinhanhhuy/b36e7e5e7aaf12f5262b82404085a5ae to your computer and use it in GitHub Desktop.
# 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