Giter VIP home page Giter VIP logo

Comments (6)

teiling88 avatar teiling88 commented on June 19, 2024

I can't reproduce this issue.

It is possible that the create_user.sh script failed on your system?

from shopware-docker.

Isengo1989 avatar Isengo1989 commented on June 19, 2024

It seems like I cannot get the ${USERID} and ${GROUP} in the Shellscript.

from shopware-docker.

Isengo1989 avatar Isengo1989 commented on June 19, 2024

That is it content of shopware-docker/dev-ops/docker/containers/mysql/createuser.sh

userid and groupid are 0

#!/usr/bin/env bash

groupadd -g 0 app-mysql
useradd -s /bin/bash -m -u 0 -g 0 app-mysql
mkdir -p /home/app-mysql/.ssh
chown -R app-mysql:app-mysql /home/app-mysql
echo -e "app-mysql\napp-mysql\n" | passwd app-mysql
echo 'app-mysql  ALL=(ALL:ALL) ALL' >> /etc/sudoers

from shopware-docker.

teiling88 avatar teiling88 commented on June 19, 2024

Can you please post the result of this command:

echo "$(id -u):$(id -g)"

from shopware-docker.

Isengo1989 avatar Isengo1989 commented on June 19, 2024

echo "$(id -u):$(id -g)"
1000:1000

I think it is because I executed ./psh.phar docker:start before with sudo - so it used the root ID in the createuser.sh Script. I delted the generated files in dev-ops/docker/containers/mysql and dev-ops/docker/containers/php7 and executed ./psh.phar docker:start without sudo - but then I get

> docker-compose build && docker-compose up -d
	Building app_mysql
	Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?
	
	If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

Do I need sudo for docker-compose in this case? My user is in the docker group already

groups $USER
micha : micha .......... docker

from shopware-docker.

Isengo1989 avatar Isengo1989 commented on June 19, 2024

Oh well - permissions...

My docker-compose file was root and I could not execute it with my user. A reboot did the trick, I guess even after changing it it stayed cached somehow with the wrong permissions in /usr/local/bin/

Everything works fine now - except ES, I guess it's just setting it to 777.

Thanks for the fast response.

from shopware-docker.

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.