budtmo / budtmo/docker-android

[🐛 Bug ]: docker-android device start ... error

Open
#373 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
15.8k
Forks
1.8k
Avg merge
12h 13m
Merged PRs (30d)
6

Description

### Operating System

Ubuntu 20.04

### Docker Image

lastest

### Expected behaviour

The first run is ok, everything work perfect as expected. But when i restart the container, the problem starting ...
```
2023-07-15 06:26:07,015 INFO success: device entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-07-15 06:26:07,162 INFO exited: device (exit status 1; not expected)
2023-07-15 06:26:08,165 INFO spawned: 'device' with pid 586
2023-07-15 06:26:09,607 INFO success: device entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-07-15 06:26:09,772 INFO exited: device (exit status 1; not expected)
2023-07-15 06:26:10,775 INFO spawned: 'device' with pid 590
2023-07-15 06:26:12,204 INFO success: device entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-07-15 06:26:12,262 INFO exited: device (exit status 1; not expected)
2023-07-15 06:26:13,265 INFO spawned: 'device' with pid 594
2023-07-15 06:26:14,688 INFO success: device entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-07-15 06:26:14,747 INFO exited: device (exit status 1; not expected)
2023-07-15 06:26:15,750 INFO spawned: 'device' with pid 598
2023-07-15 06:26:17,193 INFO success: device entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-07-15 06:26:17,289 INFO exited: device (exit status 1; not expected)
2023-07-15 06:26:18,292 INFO spawned: 'device' with pid 602
2023-07-15 06:26:19,687 INFO success: device entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-07-15 06:26:19,745 INFO exited: device (exit status 1; not expected)
2023-07-15 06:26:20,749 INFO spawned: 'device' with pid 606
2023-07-15 06:26:22,189 INFO success: device entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-07-15 06:26:22,247 INFO exited: device (exit status 1; not expected)
```

I tried with the command by reading python code
```
> shell inside container: docker-android start device
```
![image](https://github.com/budtmo/docker-android/assets/8721600/f9fa5bf0-4587-4b3a-8ea4-8ca737834a98)

i tried with other command directly from emulator in container
```
> shell inside container: emulator -list-avds (get list emulator named as "android" in config EMULATOR_NAME': 'android')
> shell inside container: emulator -avd android
```
![image](https://github.com/budtmo/docker-android/assets/8721600/501f3e58-87fb-4810-ac3b-109e69c4943e)

### Actual behaviour

So, the container is unable to restart or shutdown, if we let it run after create with docker cli, it's all fine. To temporary solve this problem, i need to delete the container and start it again.

### Logs

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.