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

Commit

Permalink
Merge pull request #30 from AkihiroSuda/a
Browse files Browse the repository at this point in the history
support running adb directly on the host
  • Loading branch information
AkihiroSuda authored Apr 17, 2020
2 parents 67e4281 + 738224c commit 5b24c35
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -qq -y --no-install-recommends \
# base system
ca-certificates curl iproute2 jq kmod \
ca-certificates curl iproute2 jq kmod socat \
# lxc deps
iptables libcap2 libseccomp2 libselinux1 \
# anbox deps
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,22 @@ The manifest is known to work on:
- Kubernetes 1.17.0, Ubuntu 19.10, Kernel 5.3.0-46-generic, containerd 1.3.2
- **NOTE**: Requires `docker exec kind-control-plane mount -o remount,rw /sys`

## Tips

### adb

```bash
docker exec -it aind adb shell
```

To run adb on the host:

```
socat TCP-LISTEN:5037,reuseaddr,fork 'EXEC:docker exec -i aind "socat STDIO TCP-CONNECT:localhost:5037"' &
adb connect localhost:5037
adb shell
```

## Apps

### Pre-installed Apps
Expand Down

0 comments on commit 5b24c35

Please sign in to comment.