Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Flutter cointainer stops if started from docker-compose #29

Open
Ch41r05 opened this issue Feb 2, 2022 · 2 comments
Open

Flutter cointainer stops if started from docker-compose #29

Ch41r05 opened this issue Feb 2, 2022 · 2 comments

Comments

@Ch41r05
Copy link

Ch41r05 commented Feb 2, 2022

Hi Mat,

As per title, Flutter container stops when doing the following:
In VSCode, Ctrl + Shift + P, Remote-Containers: Clone Repository in Container Volume...
Choose a project to clone that has the following files under .devcontainer

  • devcontainer.json
    { "name": "Flutter", "dockerComposeFile": [ "docker-compose.flutter.yml", "docker-compose.android-container.yml" ], "service": "flutter", "workspaceFolder": "/workspace", "extensions": ["dart-code.dart-code", "dart-code.flutter"] }
  • docker-compose.flutter.yml
    version: '3.3' services: flutter: container_name: flutter image: matspfeiffer/flutter volumes: - ..:/workspace
  • docker-compose.android-container.yml
    version: '3.3' services: docker-android-x86-11.0: privileged: true ports: - '6080:6080' - '5554:5554' - '5555:5555' environment: - 'DEVICE=Nexus 7' container_name: android-container image: budtmo/docker-android-x86-11.0

Just need to wait a couple of minutes without even doing a thing and the Flutter container will stop.
I'm not sure if I'm making some mistakes, could you please enlighten me?

Thanks

@Ch41r05
Copy link
Author

Ch41r05 commented Feb 2, 2022

Just wanted to point out if needed: I'm using docker-android since there doesn't seem to be an easy way to use the flutter emulator via web from your image while using docker-compose, am I wrong?

@victor-carv
Copy link

I'm facing the same issue

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

No branches or pull requests

2 participants