Skip to content

Interacting with container (attach) to add existing data to data folder #2

@Analect

Description

@Analect

Hi. Thanks for setting this up.
I've been running your container using:
docker run -d -p 9200:9200 -p 9300:9300 dockerfile/elasticsearch

However, when I attach to the container, I have no prompt or ability to interact with the container, such as copying across an existing dataset to the data folder within the container. I experimented with removing the -d and using -i and -t settings thinking that might drop me into the filesystem when I attach, but that just causes errors such as:

docker run -name=elasticsearch -i -t -p 9200:9200 -p 9300:9300 dockerfile/elasticsearch bin/bash
log4j:WARN No appenders could be found for logger (node).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

Any suggestions on what the right form of the run command should include to give me this ability to interact with the ES container once running?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions