Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The container status of web server and mysql is "Restarting (1) xxx seconds ago". And can't working #91

Closed
MinhHungTrinh opened this issue Jan 15, 2020 · 8 comments

Comments

@MinhHungTrinh
Copy link

MinhHungTrinh commented Jan 15, 2020

I have a problem. The container status of Web Server and MYSQL is "Restarting (1) xxx seconds ago". And it can't work with:

  • MacOS 10.15.2
  • Docker version 19.03.5
    Please help me.
    And work fine with: Ubuntu 18.04 and Docker version 19.03.5
@MrOffline77
Copy link
Collaborator

Please give us a little bit more information. Especially the docker container logs.
More infos about docker logs: https://docs.docker.com/engine/reference/commandline/logs/

@sdenathaniel
Copy link

My mysql container was doing the same thing, checking the logs showed there were files from another project in the data folder. Removing those files allowed the container to come up stable. That said I am still having other connect problems but it isn't cycling anymore.

@MinhHungTrinh
Copy link
Author

MinhHungTrinh commented Feb 2, 2020

Please give us a little bit more information. Especially the docker container logs.
More infos about docker logs: https://docs.docker.com/engine/reference/commandline/logs/
@MrOffline77
These is my container logs. Thanks for supporting:

  • Mysql container:
    2020-02-02 08:41:43+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.29-1debian9 started.
    find: '/var/lib/mysql/': Operation not permitted
    chown: changing ownership of '/var/lib/mysql/': Operation not permitted
  • Apache container:
    apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Could not open config directory /etc/apache2/sites-enabled: Operation not permitted
    Action '-D FOREGROUND' failed.
    The Apache error log may have more information.

@MrOffline77
Copy link
Collaborator

MrOffline77 commented Feb 2, 2020

mhh usually on my mac this works without a problem. You could try to invoke the docker-compose / Docker daemon with sudo. Do you have an Administrator Account ?

@MinhHungTrinh
Copy link
Author

MinhHungTrinh commented Feb 2, 2020

mhh usually on my mac this works without a problem. You could try to invoke the docker-compose / Docker daemon with sudo. Do you have an Administrator Account ?

@MrOffline77
yes, i removed all containers and images. Then run sudo docker-compose up -d again. But it still can not working.

@paolobattistella
Copy link

I have the same issue.
I have solved removing the following line into Dockerfile about Apache
rm -rf /var/lib/apt/lists/*

@MinhHungTrinh
Copy link
Author

OMG, I solved this problem. Thank for all the support!!!
On my Mac OS ( Catalina 10.15), I disabled System Integrity Protection (SIP) and Gatekeeper. Then, rebooting my computer. I check 2 containers (webserver and �MySql) deleted. Finally, I run docker-compose up -d again and it work fine.

@t-franz
Copy link

t-franz commented Nov 1, 2022

(Opened a new issues: #221 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants