Final step currently just assumes docker installed properly and doesn't actually check before asking for reboot...lol..
Something like this should suffice, there's pros and cons to this solution. It would verify the container runtime has DNS/networking available to it, which requires internet. For some setups this would not be appropriate.
Maybe provide an option for different checks?
# Verify docker installation
DOCKERTEST=$(sudo docker run hello-world)
case "$DOCKERTEST" in
*"Hello from Docker!"*) MESSAGE="Docker installation succeeded and testing valid, setting up non-root access" ; green_echo;;
*) MESSAGE="Docker installation failed" ; red_echo;;
esac
This would be the easiest option, but doesn't validate the container runtime is started and everything, only that docker cli is responding
Final step currently just assumes docker installed properly and doesn't actually check before asking for reboot...lol..
Something like this should suffice, there's pros and cons to this solution. It would verify the container runtime has DNS/networking available to it, which requires internet. For some setups this would not be appropriate.
Maybe provide an option for different checks?
This would be the easiest option, but doesn't validate the container runtime is started and everything, only that docker cli is responding