Skip to content

Commit

Permalink
Add docker example (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Sep 28, 2015
1 parent 58ead9a commit c6062ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ $ brew install https://raw.githubusercontent.com/moul/ssh2docker/master/contrib/

```

## Test with Docker

You can test **ssh2docker** within Docker, but you will have some limitations, i.e: cannot run with boot2docker.

Here is an example about how to use ssh2docker inside Docker

```console
$ docker run --privileged -v /var/lib/docker:/var/lib/docker -it --rm -p 2222:2222 moul/ssh2docker
```

## Usage

```
Expand Down Expand Up @@ -130,6 +140,8 @@ GLOBAL OPTIONS:

### master (unreleased)

* Add docker support ([#17](/~https://github.com/moul/ssh2docker/issues/17))
* Add GOXC support to build binaries for multiple architectures ([#18](/~https://github.com/moul/ssh2docker/issues/18))
* Support of 'ssh2docker --clean-on-startup' ([#23](/~https://github.com/moul/ssh2docker/issues/23))
* Add homebrew support ([#16](/~https://github.com/moul/ssh2docker/issues/16))
* Add Changelog ([#19](/~https://github.com/moul/ssh2docker/issues/19))
Expand Down
2 changes: 1 addition & 1 deletion contrib/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM scratch
FROM docker

ADD ./ssh2docker /ssh2docker

Expand Down

0 comments on commit c6062ac

Please sign in to comment.