Update the run script for mariadb
This commit is contained in:
parent
43765388f8
commit
a7050f1767
@ -41,6 +41,17 @@ init() {
|
|||||||
__ask_to_start
|
__ask_to_start
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Creates and enters a new container, mounting the current context to /current inside
|
||||||
|
bash() {
|
||||||
|
docker run --rm -it -v ${PWD}:/current --net ${DB_NETWORK} ${IMAGE_NAME}:${IMAGE_VERSION} bash
|
||||||
|
}
|
||||||
|
|
||||||
|
# Runs a command inside the container, mounting the current context to /current inside
|
||||||
|
cmd() {
|
||||||
|
docker run --rm -v $PWD:/current --net ${DB_NETWORK} ${IMAGE_NAME}:${IMAGE_VERSION} $@
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Used for exporting the whole database filesystem
|
# Used for exporting the whole database filesystem
|
||||||
backup() {
|
backup() {
|
||||||
stop
|
stop
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user