Skip to content

docker export and import a group is lost #791

@grigio

Description

@grigio

Hi I'm trying to build a container with Ruby, Postgres, Cron (here the steps) but after I exported and imported the image in another computer something has changed.

Everything is fine but postgres doesn't start anymore. A group is missing it seems but I didn't have group 107 in the computer where I exported the image and the base image is the same.

cat /bin/startme.sh
cron # NOTE: upstart doesn't work out-of-the-box
/etc/init.d/postgresql start
sudo -u stringer foreman start -d /home/stringer/stringer

root@45d3abfbc1ca:/# /bin/startme.sh
 * Starting PostgreSQL 9.1 database server
 * Error: The cluster is owned by group id 107 which does not exist any more

When I don't have to debug I usually run:
docker run -p 5000 -t -i grigio/stringer-ruby-postgres /bin/startme.sh but I alwais get that error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions