mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-21 23:01:03 +00:00
Updated readme's Docker section
- No need to build for amd64 architectures, just pull automatically from Docker Hub when invoking `docker run ...` - Build instructions only for ARM devices as Docker Hub does not build for ARM architectures really. - Updated Docker image tag from `lazydocker` to `lazyteam/lazydocker` - Added docker-compose.yml collapsible example
This commit is contained in:
parent
ee6b990792
commit
d8b0e1872f
1 changed files with 44 additions and 27 deletions
71
README.md
71
README.md
|
|
@ -50,22 +50,16 @@ go get github.com/jesseduffield/lazydocker
|
|||
|
||||
### Docker
|
||||
|
||||
[](https://hub.docker.com/r/jesseduffield/lazydocker)
|
||||
[](https://hub.docker.com/r/jesseduffield/lazydocker)
|
||||
[](https://hub.docker.com/r/jesseduffield/lazydocker)
|
||||
[](https://hub.docker.com/r/lazyteam/lazydocker)
|
||||
[](https://hub.docker.com/r/lazyteam/lazydocker)
|
||||
[](https://hub.docker.com/r/lazyteam/lazydocker)
|
||||
|
||||
1. <details><summary>Build it...</summary><p>
|
||||
|
||||
- If you have a x86_64 CPU architecture
|
||||
|
||||
```sh
|
||||
docker build -t lazydocker https://github.com/jesseduffield/lazydocker.git
|
||||
```
|
||||
1. <details><summary>Click if you have an ARM device</summary><p>
|
||||
|
||||
- If you have a ARM 32 bit v6 architecture
|
||||
|
||||
```sh
|
||||
docker build -t lazydocker \
|
||||
docker build -t lazyteam/lazydocker \
|
||||
--build-arg BASE_IMAGE_BUILDER=arm32v6/golang \
|
||||
--build-arg GOARCH=arm \
|
||||
--build-arg GOARM=6 \
|
||||
|
|
@ -75,7 +69,7 @@ go get github.com/jesseduffield/lazydocker
|
|||
- If you have a ARM 32 bit v7 architecture
|
||||
|
||||
```sh
|
||||
docker build -t lazydocker \
|
||||
docker build -t lazyteam/lazydocker \
|
||||
--build-arg BASE_IMAGE_BUILDER=arm32v7/golang \
|
||||
--build-arg GOARCH=arm \
|
||||
--build-arg GOARM=7 \
|
||||
|
|
@ -85,24 +79,12 @@ go get github.com/jesseduffield/lazydocker
|
|||
- If you have a ARM 64 bit v8 architecture
|
||||
|
||||
```sh
|
||||
docker build -t lazydocker \
|
||||
docker build -t lazyteam/lazydocker \
|
||||
--build-arg BASE_IMAGE_BUILDER=arm64v8/golang \
|
||||
--build-arg GOARCH=arm64 \
|
||||
https://github.com/jesseduffield/lazydocker.git
|
||||
```
|
||||
|
||||
- For development:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/jesseduffield/lazydocker.git
|
||||
cd lazydocker
|
||||
docker build -t lazydocker \
|
||||
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||
--build-arg VERSION=`git describe --abbrev=0 --tag` \
|
||||
.
|
||||
```
|
||||
|
||||
</p></details>
|
||||
1. Create a directory *config* on your host:
|
||||
|
||||
|
|
@ -113,10 +95,45 @@ go get github.com/jesseduffield/lazydocker
|
|||
1. Run the container
|
||||
|
||||
```sh
|
||||
docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/config:/.config/jesseduffield/lazydocker lazydocker
|
||||
docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/config:/.config/jesseduffield/lazydocker lazyteam/lazydocker
|
||||
```
|
||||
|
||||
On Windows, replace `$(pwd)` by `%cd%`
|
||||
On Windows, replace `$(pwd)` by `%cd%`.
|
||||
|
||||
<details><summary>You can also use docker-compose</summary><p>
|
||||
|
||||
```yml
|
||||
version: '3'
|
||||
services:
|
||||
lazydocker:
|
||||
build:
|
||||
context: https://github.com/jesseduffield/lazydocker.git
|
||||
args:
|
||||
BASE_IMAGE_BUILDER: golang
|
||||
GOARCH: amd64
|
||||
GOARM:
|
||||
image: jesseduffield/lazydocker
|
||||
container_name: lazydocker
|
||||
stdin_open: true
|
||||
tty: true
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./config:/.config/jesseduffield/lazydocker
|
||||
```
|
||||
|
||||
</p></details>
|
||||
|
||||
For development, you can build the image using:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/jesseduffield/lazydocker.git
|
||||
cd lazydocker
|
||||
docker build -t lazyteam/lazydocker \
|
||||
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
||||
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||
--build-arg VERSION=`git describe --abbrev=0 --tag` \
|
||||
.
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue