# Jekyll spawned from another process inside docker

**URL:** https://talk.jekyllrb.com/t/jekyll-spawned-from-another-process-inside-docker/3308
**Category:** Help
**Created:** [September 7, 2019, 10:07pm UTC](https://talk.jekyllrb.com/t/jekyll-spawned-from-another-process-inside-docker/3308 "2019-09-07T22:07:15Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jvitrifork](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jvitrifork](https://talk.jekyllrb.com/u/jvitrifork)
#### Post date: [September 7, 2019, 10:07pm UTC](https://talk.jekyllrb.com/t/jekyll-spawned-from-another-process-inside-docker/3308/1 "2019-09-07T22:07:15Z")

</div>

Hi all -

Has anyone experienced issues with running Jekyll, when spawned as a subprocess inside a docker container. The peculiar thing is that there are no issues when running locally, but when doing the exact same thing inside docker, Jekyll simply hangs at a certain point.

---

<div class="post-metadata">

### Author: ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)
#### Post date: [September 8, 2019, 2:08am UTC](https://talk.jekyllrb.com/t/jekyll-spawned-from-another-process-inside-docker/3308/2 "2019-09-08T02:08:39Z")

</div>

do you get an error? what is the command you are using to spawn it? The command I believe is different depending on your OS.

Does it actually run and then stop or doesn’t even run?

---

<div class="post-metadata">

### Author: ![jvitrifork](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jvitrifork](https://talk.jekyllrb.com/u/jvitrifork)
#### Post date: [September 8, 2019, 5:41am UTC](https://talk.jekyllrb.com/t/jekyll-spawned-from-another-process-inside-docker/3308/3 "2019-09-08T05:41:51Z")

</div>

It is spawned from the Java process that is set as the entrypoint of the container. I get no errors from Jekyll, it simply hangs. When attaching to the container I can see both processes are running (Java and Jekyll). It is spawned from within the Java process using the Apache executor framework (org.apache.commons.exec.DefaultExecutor). The following is used for execution:

`org.apache.commons.exec.CommandLine.parse(jekyllCommand+" build --destination \""+outputDir+"\"")`, where jekyllCommand is simply `jekyll`

---

<div class="post-metadata">

### Author: ![grahamegrieve](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/grahamegrieve/32/1893_2.png) [@grahamegrieve](https://talk.jekyllrb.com/u/grahamegrieve)
#### Post date: [September 8, 2019, 8:13am UTC](https://talk.jekyllrb.com/t/jekyll-spawned-from-another-process-inside-docker/3308/4 "2019-09-08T08:13:34Z")

</div>

The java process does pre-processing and post-processing for Jekyll, and launches it through the command line. Jens (who reported this), and I can both run exactly the same inputs and outputs outside Docker, and it runs fine. There’s no errors from Jekyll outside docker. Jens - what version of Jekyll are you using?

I maintain the Java code which is here: [https://github.com/HL7/fhir-ig-publisher/blob/master/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java#L4437](https://github.com/HL7/fhir-ig-publisher/blob/master/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java#L4437). Jens is trying to get it working under docker (it used to work but now does not)

---

<div class="post-metadata">

### Author: ![grahamegrieve](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/grahamegrieve/32/1893_2.png) [@grahamegrieve](https://talk.jekyllrb.com/u/grahamegrieve)
#### Post date: [September 8, 2019, 8:14am UTC](https://talk.jekyllrb.com/t/jekyll-spawned-from-another-process-inside-docker/3308/5 "2019-09-08T08:14:05Z")

</div>

Does Jekyll run on JRuby? that’s one possible thing for us to try

---

<div class="post-metadata">

### Author: ![jkiddo](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/jkiddo/32/1894_2.png) [@jkiddo](https://talk.jekyllrb.com/u/jkiddo)
#### Post date: [September 8, 2019, 8:27am UTC](https://talk.jekyllrb.com/t/jekyll-spawned-from-another-process-inside-docker/3308/6 "2019-09-08T08:27:41Z")

</div>

Ive tried running on jruby as well. Same resultat. Ive tried Jekyll in different versions (3.8.5, 3.8.6, 4.0.0)

---

<div class="post-metadata">

### Author: ![jkiddo](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/jkiddo/32/1894_2.png) [@jkiddo](https://talk.jekyllrb.com/u/jkiddo)
#### Post date: [September 8, 2019, 8:29am UTC](https://talk.jekyllrb.com/t/jekyll-spawned-from-another-process-inside-docker/3308/7 "2019-09-08T08:29:10Z")

</div>

Oops - jvitrifork is also me
