Giter VIP home page Giter VIP logo

Comments (12)

P4sca1 avatar P4sca1 commented on June 29, 2024 1

I'm going to make a pull request to update the README.md later this day.

from docker-sinusbot.

galexrt avatar galexrt commented on June 29, 2024

Can you please write on which OS and platform you are running on?
Also which docker version would be good.

from docker-sinusbot.

P4sca1 avatar P4sca1 commented on June 29, 2024

I'm running Mac OS X 10.13.2.

My docker version:

Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:03:51 2017
 OS/Arch:	darwin/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:29 2017
  OS/Arch:	linux/amd64
  Experimental:	true

from docker-sinusbot.

galexrt avatar galexrt commented on June 29, 2024

Please run the following commands post their output.

docker pull galexrt/sinusbot:latest
docker container run --name sinusbot --volume /Users/pascal/Sinusbot/data:/sinusbot/data --volume /Users/pascal/Sinusbot/scripts:/sinusbot/scripts -p 8087:8087 galexrt/sinusbot

The run command uses --volume instead of --mount that you used.
For me both --volume and --mount versions work, but I'm on linux/amd64 for client and server.

from docker-sinusbot.

P4sca1 avatar P4sca1 commented on June 29, 2024

Thank you for your answer!

The output of running the container is the same as before.

This is the output of docker pull:

latest: Pulling from galexrt/sinusbot
Digest: sha256:9aa42539b4bca802ad10c234d30b4afe4967d9b6b01e910fa8747aae015236b1
Status: Image is up to date for galexrt/sinusbot:latest

Could it be that user groups / ids are not preserved correctly when mounting from my mac to the linux container?

from docker-sinusbot.

P4sca1 avatar P4sca1 commented on June 29, 2024

moby/moby#22258 (comment) :

docker4mac is a slightly difference case since it does map UID/GID into the UID/GID that the container process was started with.

Maybe this has something to do with the problem?

from docker-sinusbot.

galexrt avatar galexrt commented on June 29, 2024

@P4sca1 The moby/moby issue you posted, could potentially be the problem.
From what I understand you need to start/run docker4mac as root as currently root user is used for the initial start script of Sinusbot.
But if I hopefully find the time I will look into dropping root user usage on the weekend. This may fix your issue.

from docker-sinusbot.

P4sca1 avatar P4sca1 commented on June 29, 2024

@galexrt Running the docker container as root does not fix the issue, same error like before. Aren't the scripts already copied as the sinusbot user?

from docker-sinusbot.

galexrt avatar galexrt commented on June 29, 2024

I have modified the image to directly use the sinusbot user created inside the image.
The "only" requirement is to have the data and scripts directory on the host (when used) chowned to 3000.

Please repull the image and let me know if that fixes the issue for your.

Also the README.md has been updated with more info on data persistence (with example chown commands, etc).

from docker-sinusbot.

P4sca1 avatar P4sca1 commented on June 29, 2024

I pulled the newest image and started the container, but I still have the same issue. The directories are chowned to 3000:3000.

from docker-sinusbot.

P4sca1 avatar P4sca1 commented on June 29, 2024

I was able to start the container when setting the ownership of the mounted folders to the user starting the docker container. The reason why it works like this seems to be that

The osxfs driver pretends that the files are owned by the USER that the container runs as
https://stackoverflow.com/questions/43097341/docker-on-macosx-does-not-translate-file-ownership-correctly-in-volumes

from docker-sinusbot.

galexrt avatar galexrt commented on June 29, 2024

@P4sca1 I see. The user starting the container was your "local" user (/UID) on your Mac then? if I understand correctly.
Do you want to add this information for Mac users to the README.md file?

from docker-sinusbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.