# Apple M1 workaround for Docker ## Prerequisites You need a dedicated Linux machine (`linux-vm`) (in the cloud or on your VPS, or bare-metal) with Docker installed and SSH enabled (required login using SSH keys). ## Workaround for people who have SSH access to a docker installed linux machine # ### Install go (pre-compiled binaries at [https://golang.org/dl/](https://golang.org/dl/) (Edit: there are no Darwin arm64 yet, You need to compile or use Homebrew...) ### Open terminal and execute: ```sh go get -u -v github.com/docker/cli/cmd/docker ``` ### Set a docker context with: ```sh docker context create linux-vm --docker host=ssh://user@host ``` ### Switch to context: ```sh docker context use linux-vm ``` ### Issue commands as you normally would... ### Or you can directly use an environment variable: ```sh export DOCKER_HOST=ssh://user@host ```