File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -76,4 +76,26 @@ Options:
76
76
--debug Debug mode. Will throw exceptions.
77
77
--version Show the version and exit.
78
78
--help Show this message and exit.
79
- ```
79
+ ```
80
+
81
+ #### Docker image usage
82
+
83
+ If you don't want to install the tool on your system, you can use the Docker image instead.
84
+
85
+ ``` bash
86
+ docker run -it \
87
+ --workdir $( pwd) \
88
+ --volume $( pwd) :$( pwd) \
89
+ --rm ghcr.io/techouse/sqlite3-to-mysql:latest \
90
+ --sqlite-file baz.db \
91
+ --mysql-user foo \
92
+ --mysql-password bar \
93
+ --mysql-database baz \
94
+ --mysql-host host.docker.internal
95
+ ```
96
+
97
+ This will mount your host current working directory (pwd) inside the Docker container as the current working directory.
98
+ Any files Docker would write to the current working directory are written to the host directory where you did docker
99
+ run. Note that you have to also use a
100
+ [ special hostname] ( https://docs.docker.com/desktop/networking/#use-cases-and-workarounds-for-all-platforms ) ` host.docker.internal `
101
+ to access your host machine from inside the Docker container.
You can’t perform that action at this time.
0 commit comments