Skip to content

Ownership of the data directory #19

Closed
@gllmhyt

Description

@gllmhyt

I don't understand how I could work with persistent date if I cannot create directories and so on (e.g. adding a theme or updating it).

Configuration:

  • Debian Jessie
  • Docker version 1.6.2, build 7c8fca2 (from backports)
  • User: postblue
  • Groups: postblue sudo docker

Steps:

  • Create a directory in $HOME
mkdir /home/postblue/some-ghost
  • Ownership of the
  • Run the docker command as user :
docker run --name some-ghost -d -p 80:2368 -e "VIRTUAL_HOST=some-ghost.example.tld" -v /home/postblue/some-ghost:/var/lib/ghost ghost
  • The docker image is up and running (as it seems), but my user have no possibility to change anything in the container.
  • It seems that the user:group is not what it was (postblue:postblue) anymore
ls -l ghost
total 20
drwxr-xr-x 2 myroot root 4096 aoû  1 12:53 apps
drwxr-xr-x 2 myroot root 4096 aoû  1 12:54 data
drwxr-xr-x 2 myroot root 4096 aoû  1 12:53 images
drwxr-xr-x 3 myroot root 4096 aoû  1 12:53 themes
-rw-r--r-- 1 myroot root 3794 aoû  1 12:49 config.js
  • Even the root folder is chowned to myroot:postblue.
  • So:
    • How can I add/edit/update themes with this official docker image?
    • Why does it change permissions of my directory to user 1000 (myroot on my server)?
    • Why does all the files inside the directory belong to group 0 (root on my server)?

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