README: Mention how to use the container image

Signed-off-by: Till Maas <opensource@till.name>
This commit is contained in:
Till Maas 2019-02-21 13:15:21 +01:00 committed by Gris Ge
parent 8fe626894a
commit 7c42511727

View File

@ -78,6 +78,19 @@ The `export` command can be used to add it for the current session:
export PATH="${HOME}/.local/bin:${PATH}"
```
### Container Image
Nmstate also provides a container image based on CentOS 7 to try it:
```shell
CONTAINER_ID=$(sudo docker run --privileged -d -v /sys/fs/cgroup:/sys/fs/cgroup:ro nmstate/centos7-nmstate)
sudo docker exec -ti "${CONTAINER_ID}" /bin/bash
# now play with nmstatectl in the container
nmstatectl show
# remove the container at the end
sudo docker stop "${CONTAINER_ID}"
sudo docker rm "${CONTAINER_ID}"
```
## Basic Operations