You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jianxuan-Li (via GitHub)" <gi...@apache.org> on 2023/02/14 19:05:49 UTC

[GitHub] [airflow] Jianxuan-Li opened a new issue, #29542: 'docker compose' instead of 'docker-compose'

Jianxuan-Li opened a new issue, #29542:
URL: https://github.com/apache/airflow/issues/29542

   ### What do you see as an issue?
   
   Hi all,
   
   link to the document: https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html
   <img width="687" alt="Screenshot 2023-02-14 at 14 00 00" src="https://user-images.githubusercontent.com/49817817/218832135-80cb7e87-1654-45d1-977e-54ce8b2c7a92.png">
   
   In the script it still uses 'docker-compose' as compose command, this command come from docker-compose V1, which will be removed.
   <img width="502" alt="Screenshot 2023-02-14 at 14 02 06" src="https://user-images.githubusercontent.com/49817817/218832607-fbc2347a-0ff5-47aa-b931-e0113ad5717e.png">
   <img width="750" alt="Screenshot 2023-02-14 at 14 02 57" src="https://user-images.githubusercontent.com/49817817/218832619-3f1a5ba6-29a3-4cbf-bf1e-a1b4088b3bc5.png">
   
   
   
   ### Solving the problem
   
   I think we should check which command does a user is using.
   
   ```bash
   if [ -x "$(command -v docker-compose)" ]; then
       dc=docker-compose
   else
       dc="docker compose"
   fi
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] boring-cyborg[bot] commented on issue #29542: 'docker compose' instead of 'docker-compose'

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #29542:
URL: https://github.com/apache/airflow/issues/29542#issuecomment-1430242362

   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on issue #29542: 'docker compose' instead of 'docker-compose'

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #29542:
URL: https://github.com/apache/airflow/issues/29542#issuecomment-1430252590

   Feel free.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk closed issue #29542: 'docker compose' instead of 'docker-compose'

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #29542: 'docker compose' instead of 'docker-compose'
URL: https://github.com/apache/airflow/issues/29542


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org