How to use docker for common applications

Docker help us to reuse softwares without worrying about its environments and sideaffects. You can not easily run 2 versions of software( 2 different version of redis or mongo or mysql or apache etc ) on same host without making any special arrangment. Docker make it portable and reusable. So, do not install , dock it

Some Common cli flags for dockers

  1. -d = demonised mode
  2. -it = interactive mode
  3. -v = attach volume
  4. -p = port mapping from host to docker
  5. –name = naming an instance for quick reference

Now some popular dockers for us.

  1. Couch db server = docker run -d –name couchdb -p 8091-8094:8091-8094 -p 11210:11210 couchbase
  2. Mongo db = docker run –name some-mongo -d mongo
  3. Postgres = docker run –name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
  4. redis db = docker run –name some-redis -d redis
  5. maria-db = docker run –name some-mariadb -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb

I will keep adding more information about docker, container management in coming post.. Switch to better

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.