Closed DJviolin closed 7 years ago
The "mount" concept in ACIs is a bit different from what you might be used to with Docker volumes; basically rather than a sourcePath -> destPath
mapping, it's instead a name -> destPath
mapping where the name
is an index into a set of volumes that the running pod is configured with. (The idea being that the specific source-path on the host is really a runtime parameter rather than something you want to predetermine at build time).
This is explained with some relevant examples in the rkt documentation: https://coreos.com/rkt/docs/latest/subcommands/run.html#mounting-volumes
So in your particular example you might want something like:
acbuild mount add my-debian-vol mnt`
<write the image>
rkt run --volume my-debian-vol,kind=host
(Or you could just skip adding the mount to the ACI at all during the build, and just specify it during the running of the image.)
Does that help?
Thank You! That's clearing things out.
So I have to write something like this?
$ acbuild --debug mount add my-named-vol /mnt
# ...
$ rkt run --volume my-named-vol,kind=host,source=$(pwd),readOnly=true debian.aci
Yep, exactly!
I'm getting this errror:
From this commands:
System info: