Docker

An open platform for developing, shipping, and running applications

Docker is a platform to containerize OS's and all necessary dependencies. It is a way to package applications, and the associated dependencies into a single unit called an image. This image can then be shared and run as a container, either locally as a developer or remotely on a production server.

Container: An isolated environment for running an application. It is lightweight, starts quickly, uses the OS of the host, and runs multiple applications in isolation.

Commands:

  • Get version: docker version

  • Build docker image: docker build -t $IMAGENAME

  • Pull docker repo: docker pull $URL

  • Run image in container: docker run $IMAGENAME

  • Create debian interactive container: docker run -it debian

Last updated