docker-flutter
docker-flutter copied to clipboard
Flutter cointainer stops if started from docker-compose
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
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?
I'm facing the same issue