Recipe 5.1 Installing Docker Engine

Problem

To enable you to deploy Docker containers to a host machine you will need to firstly install Docker Engine on the instance.

Solution

  • SSH to the host machine that you wish to use Docker on.

  • Install Docker.

$ sudo yum install -y docker

  • Start the Docker service.

$ sudo service docker start

  • Add the user to the docker group so you can execute Docker commands without using sudo.

$ sudo usermod -a -G docker <user_account>

  • For the settings to take effect, you will need to log out of the host.

  • Now log back in.

  • If you did everything correctly, the below command will return lots of information about your Docker install without any errors.

$ docker info

Discussion

results matching ""

    No results matching ""