How to access an instance

In some cases, it might be necessary to access an individual instance for debugging reasons. You can do this on the command line with the amc command.

Access an instance with amc

The amc command provides simple shell access to any instance managed by AMS. To access a specific instance you only need its ID:

amc shell <id>

This command opens a bash shell inside the instance. To access the nested Android container, use the anbox-shell command inside the new shell. If you combined the anbox-shell command with amc exec, you can get direct access to the Android container:

amc exec <id> -- anbox-shell

If you only want to watch the Android log output, use the following command:

amc exec <id> -- anbox-shell logcat

amc shell and amc exec open various possibilities for automation use cases. See the help output of the commands for further details.