# Using docker context with Lambda VM

## post by BCF on Sep 5, 2025

Hello,

I’m looking to use the `docker context` feature with lambda cloud VMs. The problem seems to be that all docker commands in lambda must run with `sudo` and this probably blocks the docker context communication. I tried logging in a root but it’s not allowed. What’s the proper way to setup a lambda cloud VM as a docker context from my local machine?

## post by mpapili on Sep 5, 2025

I’m not at a machine currently to verify, but you have sudo access on the default “ubuntu” user. Couldn’t you grant access to the Docker group to this user as a one time operation for each instance and then use Docker Context from your laptop normally?

```bash

sudo usermod -aG docker ubuntu
```

-then get a new session and verify that docker commands work without the need for `sudo`.
