GithubHelp home page GithubHelp logo

Docker compose v2 compat? about dip HOT 8 CLOSED

bibendi avatar bibendi commented on June 7, 2024
Docker compose v2 compat?

from dip.

Comments (8)

bibendi avatar bibendi commented on June 7, 2024 3

Very good! I'll prepare DIP to the latest Compose command next week.

from dip.

unikitty37 avatar unikitty37 commented on June 7, 2024 2

This also breaks readline in the Rails console; with Use Docker Compose V2 enabled, dip rails c gives a console where cursor keys just insert their escape sequences rather than moving the cursor, and Emacs keys like ⌃A do likewise. Disabling the setting in Docker Desktop restores the expected behaviour.

from dip.

bibendi avatar bibendi commented on June 7, 2024

What error did you get?

from dip.

Adre avatar Adre commented on June 7, 2024

I seem to be having the same issue:

Actual behaviour

dip provision hangs. it gets as far as creating networks and volumes and just sits there until I ctrl+c

Expected behaviour

The command successfully builds the images ready to be run by other dip commands

Environment

  • OS X 11.2.3
  • Docker Desktop 3.5.2
  • dip 6.1.0

Notes

Worked fine until I updated Docker Desktop - I don't know what the previous version was, but I tend to update when it tells me there's a new version - so pretty up-to-date

Disabling the Use Docker Compose V2 checkbox under Experimental Features in Docker Desktop resolved the issue for me.

from dip.

butsjoh avatar butsjoh commented on June 7, 2024

I got the following error "Can't separate key from value". It indeed seems related to docker compose v2 (apache/airflow#16949)

from dip.

bibendi avatar bibendi commented on June 7, 2024

Do you have the env file?

from dip.

butsjoh avatar butsjoh commented on June 7, 2024

Yes we have but all of our defined env variables have a value defined. Not sure if this is a dip problem perse and it is more docker related. I am using the most recent dip version (7.1.4). Will check later today if it is indeed related to my setup.

from dip.

RigDillinger avatar RigDillinger commented on June 7, 2024

According to the link given above (https://docs.docker.com/compose/cli-command/) docker-compose is turning into docker subcommand -> docker compose
Hence the error:

Traceback (most recent call last):
        ...
         3: from /home/user/.rvm/gems/ruby-2.7.3/gems/dip-7.1.4/lib/dip/command.rb:30:in `exec_program'
         2: from /home/user/.rvm/gems/ruby-2.7.3/gems/dip-7.1.4/lib/dip/command.rb:48:in `run'
         1: from /home/user/.rvm/gems/ruby-2.7.3/gems/dip-7.1.4/lib/dip/command.rb:16:in `call'
/home/user/.rvm/gems/ruby-2.7.3/gems/dip-7.1.4/lib/dip/command.rb:16:in `exec': No such file or directory - docker-compose (Errno::ENOENT)

I changed docker-compose to docker compose in compose.rb:26 and the commands i ran through dip were successful.
So I believe to solve the issue and to maintain compatibility, the compose version should be defined as an option in dip.yml if it is possible.
Any thoughts?
@bibendi

from dip.

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.