Update README.md (#3023)
## Description Changes the name of the docker image that gets build. ## Tests
This commit is contained in:
@@ -89,22 +89,14 @@ If you fancy Docker, you can also run the CLI within a container.
|
||||
Modify the `docker-compose.yml` and add volume. ``cli-data`` volume is
|
||||
mandatory, you can add more volumes for your export directory.
|
||||
|
||||
Build the docker image
|
||||
|
||||
Build and run the container in detached mode
|
||||
```shell
|
||||
docker build -t ente:latest .
|
||||
docker-compose up -d --build
|
||||
```
|
||||
|
||||
Note that [BuildKit](https://docs.docker.com/go/buildkit/) is needed to build
|
||||
this image. If you face this issue, a quick fix is to add `DOCKER_BUILDKIT=1` in
|
||||
front of the build command.
|
||||
|
||||
Start the container in detached mode
|
||||
|
||||
```shell
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
`exec` into the container
|
||||
```shell
|
||||
docker-compose exec ente-cli /bin/sh -c "./ente-cli version"
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
version: '3'
|
||||
services:
|
||||
ente-cli:
|
||||
image: ente-cli:latest
|
||||
build:
|
||||
context: .
|
||||
tags:
|
||||
- ente-cli:latest
|
||||
command: /bin/sh
|
||||
volumes:
|
||||
# This is mandatory to mount the local directory to the container at /cli-data
|
||||
|
||||
Reference in New Issue
Block a user