Add Docker post-install steps to dev env setup

Adding optional Docker post-install steps for non-root users.

Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
Change-Id: I1ff46f30dc4a69ccb4ff362b96bf0bf658b9a596
This commit is contained in:
Alexander Hughes 2021-01-25 15:28:17 -05:00
parent 3185f685c3
commit b31eedfe9c

View File

@ -85,6 +85,29 @@ development purposes.
# sudo ./deploy-k8s.sh
```
#### (Optional) Configure Docker to run as non-root
When Kubernetes is deployed from the script above it installs Docker but does not configure it
to run as a non-root user. The shell commands below are optional to configure Docker to run as
a non-root user. They include creating the docker group, adding the current user to that group
updating the group without having to log out and testing functionality with the hello-world
container.
If you choose to skip these steps, please continue with the developer environment steps as a
root user.
```
# sudo groupadd docker
# sudo usermod -aG docker $USER
```
Log out and log back in again for the changes to take effect, then test functionality with a
hello world container.
```
# docker run hello-world
```
#### Deploy ViNO
Once your cluster is up and running, you'll need to build the ViNO image to use, and to deploy the
@ -132,4 +155,4 @@ delete vino CR and make sure DaemonSet is deleted as well
For any questions on the ViNo, or other Airship projects, we encourage you to join the community on
Slack/IRC or by participating in the mailing list. Please see this [Wiki](https://wiki.openstack.org/wiki/Airship#Get_in_Touch) for
contact information, and the community meeting schedules.
contact information, and the community meeting schedules.