/DockerAsToldByMobileDeveloper

Presentation/workshop material for basic intro to docker

Primary LanguageGoThe UnlicenseUnlicense

Docker tutorial as told by mobile developer

Presentation slides are in here, but most of actual materials to follow along is in README files in sample folders:

Table of contents

Instalation instructions

Quick start guide

  • Go to dockerhub and find elasticsearch base image

  • Pull base image (similar to git)

docker pull elasticsearch:7.2.0
  • Execute command from “Run Elasticsearch” section
docker run -d --name elastic -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.2.0
  • Check container state
docker ps
  • Check if it works at http://localhost:9200/

  • Stop container

docker stop elastic
  • Check container state again
docker ps
docker ps -a
  • Restart container
docker start elastic
docker ps
  • Delete container
docker stop elastic
docker rm elastic
  • Check container state again
docker ps
docker ps -a

Useful links