Follow the instructions at get Docker. For Linux also follow the post installation for Linux instructions.