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.

Start che with --volumes-from using /data in data container

See original GitHub issue

I am trying to get Eclipse Che with docker working using a data container for /data instead of using a local bind mounted volume.

Using local volumes goes against our standard for dockerized setups, as we want to be as independent of the host file systems as possible.

Reproduction Steps:

So I was trying a simple setup like this: First, create a “che-data” container:

docker create --name che-data -v /data busybox

Try to start che using this data container:

docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock --volumes-from che-data eclipse/che start

Che version: 5.1.2

OS and version:
RancherOS 0.7.1

Docker version: 1.12.3

Che cli.log output:

WARN: Bound 'eclipse/che' to 'eclipse/che:5.1.2'
INFO: Welcome to Eclipse Che!
INFO: 
INFO: We could not detect a location to save data.
INFO: Volume mount a local directory to ':/data'.
INFO: 
INFO: Simplest syntax:
INFO:   docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock
INFO:                       -v <YOUR_LOCAL_PATH>:/data
INFO:                          eclipse/che start
INFO: 
INFO: 
INFO: Or, run with additional overrides:
INFO:   docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock
INFO:                       -v <YOUR_LOCAL_PATH>:/data
INFO:                       -v <YOUR_INSTANCE_PATH>:/data/instance
INFO:                       -v <YOUR_BACKUP_PATH>:/data/backup
INFO:                          eclipse/che start

This would be similar to creating a fdata container in docker-compose and using this - which I have not tried yet, but I assume this will give the same error.

Question is - does che not support using data containers for data storage?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TylerJewellcommented, Apr 19, 2017

@riuvshin @vkuznyetsov - FYI, this is the original early issue that triggered the thoughts.

  1. Make /data optional
  2. Use our property overrides on command line for configuring che.env
  3. Allow for volumes-from setting of volumes
  4. A process for how to save workspaces to disk as a result
0reactions
carloreggianicommented, Jun 7, 2018

I’m trying to deploy Eclipse Che (6.5.0) on Docker EE 2.0 and I’m in trouble to assign a /data folder to a “local” volume (I’m executing only docker client on my pc configured by Docker EE client env.cmd).

This issue is close, but it seems nothing change… it means Eclipse Che doesn’t support volume containers?

docker volume create eclipseche_volume
docker run  -it --rm  -e CHE_MULTIUSER=true -e CHE_HOST=dockeree.xxxx.com -v /var/run/docker.sock:/var/run/docker.sock -v eclipseche_volume:/data eclipse/che:6.5.0 start

INFO: Welcome to Eclipse Che!
INFO:
INFO: We could not detect a location to save data.
INFO: Volume mount a local directory to ':/data'.
INFO:
INFO: Simplest syntax:
INFO:   docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock
INFO:                       -v <YOUR_LOCAL_PATH>:/data
INFO:                          nexq.cadit.it/eclipse/che:6.5.0 start
INFO:
INFO:
INFO: Or, run with additional overrides:
INFO:   docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock
INFO:                       -v <YOUR_LOCAL_PATH>:/data
INFO:                       -v <YOUR_INSTANCE_PATH>:/data/instance
INFO:                       -v <YOUR_BACKUP_PATH>:/data/backup
INFO:                          nexq.cadit.it/eclipse/che:6.5.0 start
Read more comments on GitHub >

github_iconTop Results From Across the Web

Using data volumes in tasks - Amazon Elastic Container Service
Amazon ECS supports the following data volume options for containers. Amazon EFS volumes — Provides simple, scalable, and persistent file storage for use...
Read more >
Persistent Databases Using Docker's Volumes and MongoDB
Let's start by explaining how Docker stores data. Doesn't matter if you're working with a single container and Docker CLI or many containers...
Read more >
Docker Tutorial Series : Part 7 : Data Volumes | by Romin Irani
The process is really two step: You first create a Data volume container. Create another container and mount the volume from the container...
Read more >
[che-dev] (no subject) - Eclipse
Hello, I am from Deploy Team and I am working on issue[1] and I would like to discuss it. User asks for implementing...
Read more >
Polymer free volumes from wobbling vibrational probes.
This is a comment on "Amorphous polymer dynamics and free volume element size distributions from ultrafast IR spectroscopy.
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