replace user as root
This commit is contained in:
parent
e1dfdc65f2
commit
1a31d9790e
2 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,8 @@ RUN chmod +x /dcv/bin/dcv
|
||||||
RUN addgroup dcv && \
|
RUN addgroup dcv && \
|
||||||
adduser -D -G dcv -s /bin/bash -g "docker-compose-viz" -h /input dcv
|
adduser -D -G dcv -s /bin/bash -g "docker-compose-viz" -h /input dcv
|
||||||
|
|
||||||
USER dcv
|
#USER dcv
|
||||||
|
USER root
|
||||||
VOLUME /input
|
VOLUME /input
|
||||||
WORKDIR /input
|
WORKDIR /input
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
Considering the current working directory is where your `docker-compose.yml` file is located:
|
Considering the current working directory is where your `docker-compose.yml` file is located:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
docker build . -t pmsipilot/docker-compose-viz
|
||||||
|
|
||||||
docker run --rm -it --name dcv -v $(pwd):/input pmsipilot/docker-compose-viz render -m image docker-compose.yml
|
docker run --rm -it --name dcv -v $(pwd):/input pmsipilot/docker-compose-viz render -m image docker-compose.yml
|
||||||
|
|
||||||
# PowerShell
|
# PowerShell
|
||||||
|
|
Loading…
Reference in a new issue