Skip to content

AmySalieri/install-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install-docker on ubuntu

install python virtualenv on ubuntu

    git clone https://github.com/system-dev-formations/install-docker.git
    cd install-docker/
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get -y install python3 python3-pip python3-venv
    python3 -m venv venv
    source venv/bin/activate
    python -V

install ansible on localhost in virtualenv

   pip3 install wheel
   pip3 install ansible
   ansible --version

run docker install using ansible

   ansible-playbook -i inventory playbook

Check whether the setup is ok

   id 

check if the user ubuntu is in group docker otherwise log out and log in again and type

   docker ps

and run your first container

  docker run docker/whalesay cowsay Hello-world!

About

Install docker on ubuntu using ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 58.8%
  • Dockerfile 41.2%