learn devops

May 12, 2020

Docker is replacing virtual machines Docker can be used with VM’s on large projects

Hypervisors eg. vmware ESX1

How docker works Hardware - One Os(eg Ubuntu) - Docker - Other Os to create containers

Containers - are fast virtual lightweight isolated micro-computers environments. They run instances of images. Docker image is a package or a template.

How to use:

  • Install docker
  • Pull an image
    $docker pull centos
    $docker pull centos/version:number //get specific version of an image
  • Run a Container
    $docker run -d -t --name container_name centos
    $docker run -d -t -p 80:80 -name container_name centos/version:number //run docker image on your website
  • Check your your running containers
    $docker ps
  • Connect to your docker container
    $docker exec -it container_name bash
  • Stop running docker container
    $docker stop container_name
  • Start running docker container
    $docker start container_name
  • Check resources being used
    $docker stats

Why docker is cool:

  • You only need one kernel
  • They are lightweight

Profile picture

Written by Davis Bwake A fullstack developer who likes JavaScript and everything web 3.0(BlockChain..) follow me on twitter

My tech stack is HTML, CSS,JavaScript, ReactJS, NodeJS, Solidity

Am currently open to remote job oppurtunities.

Checkout my projects

YouTube