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

Project name doesn't support "." for exec command in docker-compose v2 #9023

Closed
3 tasks done
alexandrenorman opened this issue Dec 10, 2021 · 2 comments
Closed
3 tasks done
Labels

Comments

@alexandrenorman
Copy link

  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: 2C68B4F9-25BF-437E-87E4-D92E12753CC0/20211210111000

Expected behavior

docker-compose.yml :

version: "3"

services:
  debian:
    image: debian:buster
    command: "/bin/sleep 12000"

docker-compose -f docker-compose.yml -p test.test up -d
docker-compose -f docker-compose.yml -p test.test exec debian bash

should get a bash shell inside container debian

Actual behavior

When using docker-compose v2 :
Command docker-compose -f docker-compose.yml -p test.test exec debian bash returns
service "debian" is not running container docker/for-mac#1

Whereas docker-compose -f docker-compose.yml -p test.test run --rm debian bash works.

It works when unchecking docker-compose v2 in the interface.

Information

  • macOS Version: 10.15.7
  • Intel chip or Apple chip: Intel core I5
  • Docker Desktop Version: 4.3.0 (71786)
@stephen-turner stephen-turner transferred this issue from docker/for-mac Dec 10, 2021
@stephen-turner
Copy link

Moving to compose repo.

@stale
Copy link

stale bot commented Jun 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 12, 2022
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

3 participants