Add template example when creating a workspace with custom dockerfile
See original GitHub issueIt is not possible to start a workspace with any node image (node:4, node:6, node:7). However, alpine image works.
Reproduction Steps:
- Go to Create workspace -> Runtime -> Stack authoring.
- Enter “FROM node:4”.
- 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:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s a great proposal. I like it! Thanks @elonmallin.
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:
Then you could never miss it. What do you think, could that be done?
And the same for docker-compose I guess.