For this workshop, you will request and use your own virtual machine from the LinuxONE Community Cloud. Setup for the virtual machine should take about 30-45 minutes.
Visit the LinuxONE Community Cloud and request a new VM using the Try a LinuxONE Virtual Server button.
Complete the form and confirm your email to activate your LinuxONE Community Cloud account.
When the account is activated, open the Deployment Guide and scroll to First time setup. Follow the steps to create your virtual machine. Important: select a RHEL 7.6 virtual machine (it may look a little different from screenshots, but that's ok) and complete all steps including verifying that you can log in to the virtual machine from your workstation.
As provisioned, the virtual machine needs some additional packages to be installed so that you can complete all of the hands-on labs for the workshop. The virtual machine docker configuration will also need a copy of the signing certificate used by the ICP container image registry.
Use the setupVM.sh script included in this gist file to configure the virtual machine. Log in to your virtual machine and run these commands:
curl -LO https://gist.githubusercontent.com/timroster/6e34ffeee5e63020c6529da08248af9b/raw/87e9186b374ea92cefdf3dd8aedffd4ce8f2e75d/setupVM.sh
chmod +x setupVM.sh
./setupVM.sh
After running the setup script on your VM, you should be able to run docker commands. Test it out:
We are following the Red Hat enterprise linux convention of using the sudo command to invoke docker.
sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
Trying to pull repository registry.access.redhat.com/hello-world ...
Pulling repository registry.access.redhat.com/hello-world
Trying to pull repository docker.io/library/hello-world ...
latest: Pulling from docker.io/library/hello-world
d39d9a31884d: Pull complete
Digest: sha256:41a65640635299bab090f783209c1e3a3f11934cf7756b09cb2f1e02147c6ed8
Status: Downloaded newer image for docker.io/hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(s390x)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
If you saw a message similar to the above, congratulations! You are all set with a LinuxONE vm that can run docker containers and perform other tasks for the workshop labs.