Skip to content

Instantly share code, notes, and snippets.

@bargitta
Last active July 15, 2025 22:41
Show Gist options
  • Select an option

  • Save bargitta/8f7392286e1eae678198a02f33275512 to your computer and use it in GitHub Desktop.

Select an option

Save bargitta/8f7392286e1eae678198a02f33275512 to your computer and use it in GitHub Desktop.
a step by step guide for kubernetes begineers
Hello! This guide is to help you start using kubernetes.
First, install the official docker on your OS. Take Ubuntu 17.04 as an example.
1. Add GPG key of the official docker repo to your system
#curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
2. Add docker repo to you APT source
#sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
3. Update your packages
#sudo apt-get update
4. Ensure you'll install docker-ce from docker repo
#apt-cache policy docker-ce
5. Install docker
#sudo apt-get install -y docker-ce
6. Try the hello-world
#sudo docker run hello-world
That's it, now you've got docker running!
If you don't want to type "sudo" for every docker cmd, add your account to group docker like this:
#sudo adduser <username> docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment