mirror of
https://github.com/costela/docker-etchosts.git
synced 2025-05-11 09:55:48 +02:00
update README for go mod
This commit is contained in:
parent
0cce183524
commit
5796a343ec
1 changed files with 3 additions and 3 deletions
|
@ -11,14 +11,14 @@ Inspired by [`vagrant-hostmanager`](https://github.com/devopsgroup-io/vagrant-ho
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
To install from source, [dep](github.com/golang/dep) must be used:
|
To install from source, go >= 1.13 is required:
|
||||||
```
|
```
|
||||||
go get -d github.com/costela/docker-etchosts
|
go get -d github.com/costela/docker-etchosts
|
||||||
cd $GOPATH/src/github.com/costela/docker-etchosts
|
cd $GOPATH/src/github.com/costela/docker-etchosts
|
||||||
dep ensure -vendor-only
|
|
||||||
go install
|
go install
|
||||||
```
|
```
|
||||||
And run it as `docker-etchosts`
|
And run it as `docker-etchosts`.
|
||||||
|
(using `go get` directly is currently not possible because of an issue between `docker.io/go-docker` and `go mod`)
|
||||||
|
|
||||||
Alternatively, it's also possible to run `docker-etchost` from inside a docker container itself, giving it access to both the hosts file and the docker daemon:
|
Alternatively, it's also possible to run `docker-etchost` from inside a docker container itself, giving it access to both the hosts file and the docker daemon:
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue