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

docker-compose up does not work on Mac #174

Closed
plebanip opened this issue Jul 5, 2019 · 12 comments
Closed

docker-compose up does not work on Mac #174

plebanip opened this issue Jul 5, 2019 · 12 comments

Comments

@plebanip
Copy link

plebanip commented Jul 5, 2019

I am trying to run your nice tool on a macbook but, while the “docker-compose pull” command perfectly works, when I run the composition with “docker-compose up -d” command I got the following error

WARNING: The TAG variable is not set. Defaulting to a blank string.
Creating volume "isardvdi_sshkeys" with default driver
ERROR: no such image: isard/hypervisor:: invalid reference format

Any suggestion?

Thanks

@sim6
Copy link
Member

sim6 commented Jul 5, 2019

Please could you try the following command:

TAG=latest docker-compose up -d

Thanks

@plebanip
Copy link
Author

plebanip commented Jul 5, 2019

thanks for the prompt answer.

I got this error now.

Cannot start service isard-database: error while creating mount source path '/etc/localtime': mkdir /etc/localtime: file exists

Is there any modification to the docker-compose.yaml to avoid the need to replace this file?

@sim6
Copy link
Member

sim6 commented Jul 5, 2019

Do you have /etc/localtime in your host?

@plebanip
Copy link
Author

plebanip commented Jul 5, 2019

Do you have /etc/localtime in your host?

yes. I tried to rename the existing file, but some running apps start complaining.

@sim6
Copy link
Member

sim6 commented Jul 5, 2019

So, please, could you try to run the following command?

TAG=latest TZ=$(basename $(readlink /etc/localtime)) docker-compose up -d

@plebanip
Copy link
Author

plebanip commented Jul 5, 2019

nope :-( Here is the error

Creating isard-database ... error
Creating isard-hypervisor ...

Creating isard-hypervisor ... error

ERROR: for isard-hypervisor Cannot start service isard-hypervisor: error while creating mount source path '/etc/localtime': mkdir /etc/localtime: file exists

ERROR: for isard-database Cannot start service isard-database: error while creating mount source path '/etc/localtime': mkdir /etc/localtime: file exists

ERROR: for isard-hypervisor Cannot start service isard-hypervisor: error while creating mount source path '/etc/localtime': mkdir /etc/localtime: file exists
ERROR: Encountered errors while bringing up the project.

@sim6
Copy link
Member

sim6 commented Jul 5, 2019

Please, could you try my new yml runing the following commands?

wget -O docker-compose.yml https://raw.githubusercontent.com/sim6/isard/sim6_fix_docker_compose_github_174/docker-compose.yml
docker-compose pull
LOCALTIME=$(readlink /etc/localtime) docker-compose up -d

@plebanip
Copy link
Author

plebanip commented Jul 5, 2019

With your command the error is the same

Then I tried with the absolute link

sudo TAG=latest LOCALTIME=/private/var/db/timezone/zoneinfo/Europe/Rome docker-compose up -d

getting

Cannot start service isard-database: error while creating mount source path '/private/var/db/timezone/zoneinfo/Europe/Rome': mkdir /private/var/db/timezone/zoneinfo: file exists

@sim6
Copy link
Member

sim6 commented Jul 5, 2019

:( Please take a look at docker/for-mac#2396
and comment the progress.

@sim6
Copy link
Member

sim6 commented Jul 5, 2019

TAG variable no more needed after #175 was merged

@plebanip
Copy link
Author

plebanip commented Sep 4, 2019

being a side project, I had time only in these days to have a look. Anyway, investigating all the solutions that have been proposed, the only one working for me is docker/for-mac#2396 (comment)

Not that elegant, but at least isardvdi starts.

I think the issue can be closed. Thanks for the nice support

@plebanip plebanip closed this as completed Sep 4, 2019
@NefixEstrada
Copy link
Contributor

Thank you too!

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

No branches or pull requests

3 participants