Unable to execute the run command in docker-compose (in Windows environment) (advance the -d option).

Asked 1 years ago, Updated 1 years ago, 43 views

Quickstart:Docker Composer and Rails
In the process of proceeding with the tutorial as described above,

 docker-compose run web rails new. --force --database=postgresql --skip-bundle

running

Please pass the-d flag when using 'docker-composer run'

appears.(Windows 10, docker-v1.11.0 docker-compose v1.7.0)
I was able to do the same procedure without any problems with the Macbook. Does anyone know what the problem is?

Or is there anyone who said that there was no problem with their Windows environment?

docker

2022-09-30 21:15

1 Answers

I will post it just in case because it seems to be self-solving. Please point it out if it's wrong.

Take a look here: https://github.com/docker/compose/blob/1655be6c5bcbc35d2a34bd4c464b8a91981aaa42/compose/cli/main.py#L550

in

 if IS_WINDOWS_PLATFORM and not detach:
        raise UserError(
            "Interactive mode is not yet supported on Windows.\n"
            "Please pass the-d flag when using `docker-compose run`."
        )

Windows still doesn't support interactive mode.
For now, I'll think about it in a different way.


2022-09-30 21:15

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.