Commit 91769be3 authored by Sebastien Moretti's avatar Sebastien Moretti
Browse files

Update README.md

parent 71529776
...@@ -3,23 +3,23 @@ export UCNEBASE_VERSION=0.0.2 ...@@ -3,23 +3,23 @@ export UCNEBASE_VERSION=0.0.2
``` ```
# Run the container with default -> MySQL and Apache running # Run the container with default -> MySQL and Apache running
````bash ```bash
docker run -p 8081:8081 -d ucnebase:$UCNEBASE_VERSION docker run -p 8081:8081 -d ucnebase:$UCNEBASE_VERSION
``` ```
- -p Publish a container's port(s) to the host, i.e. map internal port 8081 to 8081 externally - -p Publish a container's port(s) to the host, i.e. map internal port 8081 to 8081 externally
- -d Run container in background and print container ID - -d Run container in background and print container ID
# Run bash in the Docker image # Run bash in the Docker image
````bash ```bash
docker run --rm -i -t ucnebase:$UCNEBASE_VERSION bash docker run --rm -i -t ucnebase:$UCNEBASE_VERSION bash
``` ```
# Mounting/binding a local repository (,readonly can be added to force readonly mounting) ### Mounting/binding a local repository (,readonly can be added to force readonly mounting)
````bash ```bash
--mount type=bind,source=/software,target=/software --mount type=bind,source=/software,target=/software
``` ```
- UCNEBASE_VERSION is the container version - UCNEBASE_VERSION is the container version
- --name assignes a name to the running container - --name assignes a name to the running container
- --rm automatically removes the container when it exits - --rm automatically removes the container when it exits
- -i opens an interactive session with the container - -i opens an interactive session with the container
- -t allocates a pseudo-TTY - -t allocates a pseudo-TTY
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment