docker-flutter icon indicating copy to clipboard operation
docker-flutter copied to clipboard

Flutter cointainer stops if started from docker-compose

Open Ch41r05 opened this issue 3 years ago • 2 comments

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 avatar Feb 02 '22 14:02 Ch41r05

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?

Ch41r05 avatar Feb 02 '22 18:02 Ch41r05

I'm facing the same issue

victor-carv avatar Feb 18 '22 18:02 victor-carv