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

OrbStack issue #175

Open
alec-c4 opened this issue Nov 6, 2024 · 5 comments
Open

OrbStack issue #175

alec-c4 opened this issue Nov 6, 2024 · 5 comments
Labels

Comments

@alec-c4
Copy link

alec-c4 commented Nov 6, 2024

Describe the bug
Hey!
I use https://orbstack.dev as a replacement for Docker Desktop, but on attempt to run any dip-command I see following error

~ ❯ dip ruby server -c "bundle exec puma"
unknown flag: --file
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Common Commands:
  run         Create and run a new container from an image
  exec        Execute a command in a running container
  ps          List containers
  build       Build an image from a Dockerfile

To Reproduce
Steps to reproduce the behavior:

I do use config from https://evilmartians.com/chronicles/reusable-development-containers-with-docker-compose-and-dip

When I run any command, I see error unknown flag: --file

OS: macOS Sequoia

@alec-c4
Copy link
Author

alec-c4 commented Nov 6, 2024

Is it possible to enable verbose mode to see what's wrong?

@bibendi
Copy link
Owner

bibendi commented Nov 6, 2024

Hi! My team and I use Orbstack as well and we haven't had any issues with it. But we don't use global dip config.

Is it possible to enable verbose mode to see what's wrong?

You can try the DIP_ENV=debug environment variable

Also, you can find a real world example of a RoR application over here: https://github.com/Kuper-Tech/outbox-example-apps

@alec-c4
Copy link
Author

alec-c4 commented Nov 6, 2024

~ ❯  DIP_ENV=debug dip ruby server -c "bundle exec puma" -D
[{}, "docker inspect --format '{{ .NetworkSettings.Networks.frontend.IPAddress }}' dnsdock"]
[{"DIP_DNS"=>"127.0.0.11"}, "docker compose --file /Users/alec/.dip/global-compose.yml --project-name shared_dip_env run --service-ports -e PNPM_HOME=/Users/alec/Library/pnpm -e EDITOR=nvim -e P9K_TTY=old --rm ruby -c bundle\\ exec\\ puma -D"]
unknown flag: --file
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

Something wrong with docker compose, but docker-compose works fine :(

@bibendi
Copy link
Owner

bibendi commented Nov 6, 2024

https://docs.docker.com/compose/releases/migrate/

I think you have an old version of the Orbstack or something like that.
As a workaround, you can define DIP_COMPOSE_COMMAND=docker-compose environment variable https://github.com/bibendi/dip/blob/master/lib/dip/commands/compose.rb#L80C18-L80C37

@alec-c4
Copy link
Author

alec-c4 commented Nov 6, 2024

I think you have an old version of the Orbstack or something like that.

Version 1.8.0 (18332) - the latest one. I'll try to contact orbstack team and ask how to use docker compose syntax

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

No branches or pull requests

2 participants