Mark,
Many thanks for responding! See below:
On 2017-07-24 00:26, Mark Petrovic wrote:
> Need more coffee: the --working-dir should come after the image. See
> "rkt run -h".
>
> On Sunday, July 23, 2017 at 7:19:53 AM UTC-7, Mark Petrovic wrote:
>
>>> docker run -v $(pwd):/tmp/jekyll -w "/tmp/jekyll" -p 4003:4003
>>> irakli/jekyll jekyll s --host 0.0.0.0 -w --port 4003
>>
>> Give something like this a try, though I am not familiar with --host
>> or more than one use of -w for docker images.
>>
>> rkt run --volume=jekyll,kind=host,source=$(pwd) --mount
>> volume=jekyll,target=/tmp/jekyll --port=4003-tcp:4003
>> insecure-options=image --working-dir=/tmp/jekyll
>> docker://irakli/jekyll
# rkt run --volume=jekyll,kind=host,source=$(pwd) --mount
volume=jekyll,target=/tmp/jekyll --port=4003-tcp:4003
insecure-options=image --set-working-dir=/tmp/jekyll
docker://irakli/jekyll
run: error parsing app image arguments: unknown flag: --set-working-dir
I couldn't find a fix for the working directory and leaving it out
produced this error:
# rkt run --volume=jekyll,kind=host,source=$(pwd) --mount
volume=jekyll,target=/tmp/jekyll --port=4003-tcp:4003
insecure-options=image docker://irakli/jekyll
image: using image from local store for image name
coreos.com/rkt/stage1-host:1.11.0-1.git1ec4c60.fc25
run: ACIdentifier must contain only lower case alphanumeric characters
plus "-._~/"
Not sure about that maybe that is an artifact and something else needs
fixing?
>> Stop this container with Ctrl-]]]. Start it as a systemd service by
>> prefixing the invocation with systemd-run.
Ah, interesting! - that will be useful after I sort out the first
problems . .
Regards,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail:
ph...@pricom.com.au