question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add template example when creating a workspace with custom dockerfile

See original GitHub issue

It is not possible to start a workspace with any node image (node:4, node:6, node:7). However, alpine image works.

Reproduction Steps:

  1. Go to Create workspace -> Runtime -> Stack authoring.
  2. Enter “FROM node:4”.
  3. Save to create.

Or start with che dir up and get same result. Chefile:

workspace.runtime.docker.image="node:4"
workspace.name="local"
workspace.ram=2048

OS and version:
Windows 8

Diagnostics: Message in popup:

Could not start workspace wksp-vr0r. Reason: Start of environment 'wksp-vr0r' failed. Error: Error occurs while initializing command [/bin/sh, -c, trap '[ -z "$(jobs -p)" ] || kill $(jobs -p); [ -e /tmp/docker-exec-93.pid ] && rm /tmp/docker-exec-93.pid' EXIT; echo $$>/tmp/docker-exec-93.pid; command -v pidof >/dev/null 2>&1 && { pidof che-exec-agent >/dev/null 2>&1 && echo 0 || echo 1 } || { ps -fC che-exec-agent >/dev/null 2>&1 && echo 0 || echo 1 }] in docker container a4f260a5b614cd7d7df741d17dbf1c40abb37093031ab6527d29cafdf2eced1c: Error response from docker API, status: 500, message: Container a4f260a5b614cd7d7df741d17dbf1c40abb37093031ab6527d29cafdf2eced1c is not running

Message in dev machine output:

[DOCKER] Step 1/1 : FROM node:4
[DOCKER] 4: Pulling from library/node 
[DOCKER] Digest: sha256:ea678b5c98f45994794c2deab51a2bdbfba5be91e836c31007568bc4de8b0fa0 
[DOCKER] Status: Image is up to date for node:4 
[DOCKER] ---> 3007493bf881
[STDOUT] rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused "process_linux.go:110: decoding init error from pipe caused \"read parent: connection reset by peer\""
[STDOUT]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
slemeurcommented, May 31, 2017

It’s a great proposal. I like it! Thanks @elonmallin.

2reactions
elonmallincommented, May 31, 2017

Ah okey cool. I didn’t know. It would be really awesome to actually have a template example dockerfile prefilled when you go to create your own. Like:

# Custom runtime recepies: https://www.eclipse.org/che/docs/devops/runtime-recipes/index.html#che-runtime-required-dependencies
FROM <image>

# Needed to keep container running
CMD tail -f /dev/null

Then you could never miss it. What do you think, could that be done?

And the same for docker-compose I guess.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker build - Docker Documentation
The docker build command builds Docker images from a Dockerfile and a “context”. A build's context is the set of files located in...
Read more >
Introduction to dev containers - GitHub Docs
You can add a Dockerfile as part of your dev container configuration. The Dockerfile is a text file that contains the instructions needed...
Read more >
Configure Flex Templates - Dataflow - Google Cloud
To do so, copy the Flex Template launcher binary from the Google-provided template launcher image onto your custom image. An example Dockerfile :....
Read more >
Templates - Coder v2 main docs
Templates are written in Terraform and describe the infrastructure for workspaces (e.g., docker_container, aws_instance, kubernetes_pod).
Read more >
Create a Dev Container - Visual Studio Code
Reuse or extend your existing Docker Compose setup. Add more Advanced container configuration. For this example, if you'd like to install the ESLint...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found