Skip to content

Can't chown files inside container while running on boot2docker #69

@Hariador

Description

@Hariador

Running it an issue where we cannot run an elasticsearch container on boot2docker running on OSX while bind mounting the data and config directories. Our previous work around was to drop the chown and gosu lines from the docker_entrypoint.sh and run as root in the container since this was just a local dev environment. However, the latest dockerfile image is now checking if elasticsearch us running as root and bailing if it is. The new hacky fix is to run 'usermod -u 1000 elasticsearch' before chown in the entry point. From reading previous similar issues, it appears that there was a plan to use environment variables to let elasticsearch optionally run as root, but that no longer appears to be the case. Is there a better less fragile way to get this running?

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