This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Docker

    limactl start template://docker
    export DOCKER_HOST=$(limactl list docker --format 'unix://{{.Dir}}/sock/docker.sock')
    docker run -d --name nginx -p 127.0.0.1:8080:80 nginx:alpine
    
    limactl start template://docker-rootful
    export DOCKER_HOST=$(limactl list docker-rootful --format 'unix://{{.Dir}}/sock/docker.sock')
    docker run -d --name nginx -p 127.0.0.1:8080:80 nginx:alpine