Docker Support
Last updated
Last updated
The Docker service can be started in antMan via the Services page, accessible on the sidebar
From here you can start the Docker service. Check the 'Autostart' checkbox to have Docker start when the Antsle is rebooted.
Docker can be run at the Antsle's command line. Simply connect to the antsleOS via ssh and test docker by running dockers 'hello-world' image
This will download and run the 'hello-world' image in a container. It will print some text and exit.
For more info on using docker please visit the docker website
Here's a guide on how to run an example service:
First, create (at least) two antlets out of the "Ubuntu 16.04 Kubernetes - KVM" template, and make sure hostnames are unique.
For our example, we're going to use Calico pod network, when running kubeadm init, you must run it like this: (use your network number)
Then proceed with the output instructions and join the node as normal.
Next, you need to create the pod network, as we prepared it to use Calico, we run:
Note: We have tested our changes with the Calico pod network, but it should work with other pod networks. Bare in mind that you must run some special flags for each when doing a kubeadm init. You can find the list of supported pod networks and their special flags here: https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#pod-network
Now you should be able to run your services with type "NodePort", here's an example:
Then look for the node port:
Look for the NodePort line, it should look like:
The service should be accessible on this port, in our exmaple it would be:
You need to use the IP address, for some reason using "localhost" won't work.
To call it from outside the antlet:
You should see an output like this:
"Hello Kubernetes!" is the output of our example service.