File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1- # Docker MySQL Client ![ Docker Image Size] ( https://img.shields.io/docker/image-size/joseluisq/static-web-server/2 ) ![ Docker Image Version] ( https://img.shields.io/docker/v/joseluisq/static-web-server/2 ) ![ Docker Pulls] ( https://img.shields.io/docker/pulls/joseluisq/alpine-mysql-client.svg )
1+ # Alpine MySQL Client ![ Docker Image Size] ( https://img.shields.io/docker/image-size/joseluisq/alpine-mysql-client/1 ) ![ Docker Image Version] ( https://img.shields.io/docker/v/joseluisq/alpine-mysql-client/1 ) ![ Docker Pulls] ( https://img.shields.io/docker/pulls/joseluisq/alpine-mysql-client.svg )
22
33> [ MySQL client] ( https://dev.mysql.com/doc/refman/8.0/en/programs-client.html ) for easy ** export** and ** import** databases using Docker.
44
@@ -82,6 +82,7 @@ The following Docker commands create a container in order to export a database a
8282
8383``` sh
8484docker run --rm -it \
85+ --user $( id -u $USER ) :$( id -g $USER ) \
8586 --volume $PWD :/home/mysql/sample \
8687 --workdir /home/mysql/sample \
8788 joseluisq/alpine-mysql-client:1 \
@@ -160,6 +161,7 @@ The following Docker commands create a container in order to import a SQL script
160161
161162``` sh
162163docker run --rm -it \
164+ --user $( id -u $USER ) :$( id -g $USER ) \
163165 --volume $PWD :/home/mysql/sample \
164166 --workdir /home/mysql/sample \
165167 joseluisq/alpine-mysql-client:1 \
You can’t perform that action at this time.
0 commit comments