This message was deleted.
# rancher-desktop
a
This message was deleted.
a
rancher desktop on macos catalina
f
hm, my understanding is that when you mount a volume with that
-v
flag, it mounts directories, not individual files. so that flag mounted that file
/tmp/local-gbs-user/init.sql
to a dir called
/sql/init.sql
you should probably be doing
-v /tmp/local-gbs-user:/sql
a
forgot to mention that mounted the file as a directory too which felt very weird
Copy code
$ cat /tmp/local-gbs-user/init.sql 
IF DB_ID('backend_sim') IS NULL
CREATE DATABASE backend_sim;
GO
$ docker run --rm -ti --name sqlinit -v /tmp/local-gbs-user:/sql --entrypoint bash australia-southeast1-docker.pkg.dev/gb-plat-dev-gar-v1/apps-docker-repo/mcr.microsoft.com/mssql-tools:latest-1205
bob@c07e5a242ee1:/$ cat /sql/init.sql
cat: /sql/init.sql: Is a directory
also i did look at the docs and that seemed to suggest you could do files
f
..then in that case , what you're doing seems fine. That said, i've only ever mounted directories:directories, never files:files . sorry!
a
what next? should i deal with this via github issues?