Skip to content

Step by step documentation

Step 1 Install

Following https://docs.openclaw.ai/install/docker

Clone the repo (https://github.com/openclaw/openclaw.git)

git clone https://github.com/openclaw/openclaw.git

Install docker, https://docs.docker.com/engine/install/ubuntu/.

For rootless docker follow: https://docs.docker.com/engine/security/rootless/

Install requirements

sudo apt-get install -y uidmap

Run the rootless setup script

/usr/bin/dockerd-rootless-setuptool.sh install

Run docker info, to verify the context says rootless.

Get the docker gui, replace 1000 with your uid.

stat -c '%g' /run/user/1000/docker.sock

Uncomment the lines regarding the docker sock and DOCKER_GUI in docker-compose.yml

Create an .env file

export OPENCLAW_IMAGE=ghcr.io/openclaw/openclaw:2026.3.13-1
export OPENCLAW_SANDBOX=1
export OPENCLAW_DOCKER_SOCKET=/run/user/1000/docker.sock
export DOCKER_GID=[fill this value]
export OPENCLAW_CONFIG_DIR=./config
export OPENCLAW_WORKSPACE_DIR=./config/workspace

Comments