Skip to content
This repository was archived by the owner on Sep 11, 2018. It is now read-only.
This repository was archived by the owner on Sep 11, 2018. It is now read-only.

Volume problem #34

Description

@dataanalyst

I connected the container's data to a path on my HDD as described in the instruction:

$ docker run -d --name cass1 tobert/cassandra -v /srv/cassandra:/data;

Then, I connected to the container using the cqlsh and created a keyspace, a small table and filled it with some data.
$ docker exec -it cass1 cqlsh

I checked the /srv/cassandra on my HDD and no new file was generated.
Then, I stopped the cass1 container, removed it, created a new one (cass2)
docker run -d --name cass2 tobert/cassandra -v /srv/cassandra:/data;

When I connected to the second one ( docker exec -it cass12 cqlsh), no keyspace or data from the first one was preserved.
What am I doing wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions