Skip to content

Commit

Permalink
add dockerfile example
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Dec 17, 2020
1 parent 5469d74 commit 2480804
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ $ cntr attach boxbusy
[root@55a93d71b53b:/var/lib/cntr]# cntr exec sh -c 'busybox | head -1'
```

Also see Dockerfile.example on how to build a docker container with cntr.
You can also use Dockerfile.example from this repo to build a docker container with cntr:

``` console
$ docker build -f Dockerfile.example . -t cntr
# boxbusy here is the name of the target container to attach to
$ docker run --pid=host --privileged=true -v /var/run/docker.sock:/var/run/docker.sock -ti --rm cntr attach boxbusy /bin/sh
```

### LXD

Expand Down

0 comments on commit 2480804

Please sign in to comment.