Post A1ZomxYys9KPHgOooS by mattgen88@cybre.space
(DIR) More posts by mattgen88@cybre.space
(DIR) Post #A1ZdiW9Fl9w3bW2pXc by hyperrealgopher@fosstodon.org
2020-11-26T00:54:47Z
0 likes, 0 repeats
Any #docker users around? I'm using #debian and cannot mount a volume from host fs or container with the run -v or run --from-volume commands. No matter how simple the example...
(DIR) Post #A1ZiW4sTpBajK15RGC by thenome@fosstodon.org
2020-11-26T01:48:32Z
0 likes, 0 repeats
@hyperrealgopher some distributions require : docker run -v /mypathfrom:/mypathto:z myimage:mytagTry that? But IFK if it will help?
(DIR) Post #A1ZimseKXfPYJsTqs4 by mrkz@mstdn.mx
2020-11-26T01:51:29Z
0 likes, 0 repeats
@hyperrealgopher showing the command (or am example) would help :)
(DIR) Post #A1Zj0fd9k7UvzpVUFE by hyperrealgopher@fosstodon.org
2020-11-26T01:54:06Z
0 likes, 0 repeats
@mrkz @thenome The command I use to test is:docker run -d speakeasy -v /home/hyperrealgopher/Projects/docker-znc-ngircd/deleteme:/wtf --volumes-from /znc-data --restart=alwaysAnd there's no /wtf when I `bash exec -it containerid bash`
(DIR) Post #A1Zn1e6dIQsTNG0zFA by thenome@fosstodon.org
2020-11-26T01:49:05Z
0 likes, 0 repeats
@hyperrealgopher the key being the ":z"
(DIR) Post #A1Zn1eHcdZfTvL9lNA by hyperrealgopher@fosstodon.org
2020-11-26T02:39:05Z
0 likes, 0 repeats
@thenome oh weird... what's the `:z`? The container name or something?
(DIR) Post #A1ZomxYys9KPHgOooS by mattgen88@cybre.space
2020-11-26T02:58:49Z
0 likes, 0 repeats
@hyperrealgopher Does debian use selinux? I feel like I run into weird things anytime I'm on a system using selinux.
(DIR) Post #A1ZovK0XJB9lD9H8gC by hyperrealgopher@fosstodon.org
2020-11-26T03:00:19Z
0 likes, 0 repeats
@mattgen88 It does, but it's disabled by default and "getenforce" produces nothing.
(DIR) Post #A1ZsGssh90Q1JTa5ce by hyperrealgopher@fosstodon.org
2020-11-26T03:37:51Z
0 likes, 0 repeats
I figured it out!This works:docker run -d -v /home/hyperrealgopher/Projects/docker-znc-ngircd/deleteme:/wtf speakeasyThis, which is what I was trying before, does not:docker run -d speakeasy --mount /home/hyperrealgopher/Projects/docker-znc-ngircd/deleteme:/wtfNote where the image name went (speakeasy).
(DIR) Post #A1ayEv1F1DJiFOz6JM by splatt9990@fosstodon.org
2020-11-26T16:19:26Z
0 likes, 1 repeats
@hyperrealgopher some CLI programs stop parsing flag options when they reach the first real (positional) argument so its safer to always put flags first. You've already figured that out here but it also applies generally.
(DIR) Post #A1b2h8DPwpQr6HO8Ku by mrkz@mstdn.mx
2020-11-26T17:09:19Z
0 likes, 1 repeats
@hyperrealgopher @thenome The -v option should be used prior your docker container name being used (i.e: docker run -d -v /home/hyperrealgopher/Projects/docker-znc-ngircd/deleteme:/wtf --volumes-from /znc-data --restart=always speakeasy ).Otherwise the -v option is passed to your container (e.g: docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"-v\": executable file not found in $PATH": unknown).