docker commands install code example Example 1: install docker ubuntu sudo apt install docker.io Example 2: install docker ubuntu sudo apt install docker.io -y