Category Archives: Docker

Docker Supervisor tutorial

admin/ March 15, 2017/ Docker, Linux/ 0 comments

Why Supervisor with Docker? Generally, a Docker container starts with a single process when it is launched, for example, an Apache daemon or an SSH server daemon. Often though you want to run more than one process in a container. There are a number of ways you can achieve this ranging from using a simple Bash script as the value of

Read More

Docker-compose.yml for mysql and phpmyadmin

admin/ January 2, 2017/ Docker, Linux/ 0 comments

Docker Compose makes dealing with the orchestration processes of Docker containers (such as starting up, shutting down, and setting up intra-container linking and volumes) really easy. Step-1: Install docker and docker-compose, Create a file with name docker-compose.yml in a directory. sudo apt-get update sudo apt-get install docker.io docker sudo apt-get install python-pip sudo pip install docker-compose Step-2: Copy and paste

Read More

Dockerfile for ubuntu14.04 ssh

admin/ December 9, 2016/ Docker, Linux/ 0 comments

Openssh server enabled in the Ubuntu 14.04 images on Docker. Use the below Dockerfile for Ubuntu 14.04 ssh server. FROM ubuntu:14.04 MAINTAINER Arvind Rawat <[email protected]> RUN apt-get update && apt-get install -y openssh-server RUN mkdir /var/run/sshd RUN echo ‘root:screencast’ | chpasswd RUN sed -i ‘s/PermitRootLogin without-password/PermitRootLogin yes/’ /etc/ssh/sshd_config # SSH login fix. Otherwise user is kicked off after login RUN

Read More

Install Docker-Engine, Docker-machine and Docker-compose on ubuntu 16.04

admin/ August 23, 2016/ Docker/ 0 comments

To install Docker-engine on Ubuntu 16.04. $ sudo apt-get update $ sudo apt-get install linux-image-generic-lts-trusty $ sudo apt-get install docker.io Docker Commands. Commands: attach Attach to a running container build Build an image from a Dockerfile commit Create a new image from a container’s changes cp Copy files/folders from a container’s filesystem to the host path create Create a new

Read More

Manage Docker-machine

admin/ March 30, 2016/ Docker, Linux/ 0 comments

Use Machine to run Docker containers To run a Docker container, you: create a new (or start an existing) Docker virtual machine switch your environment to your new VM use the docker client to create, load, and manage containers Once you create a machine, you can reuse it as often as you like. Like any VirtualBox VM, it maintains its

Read More

How to install Docker-Machine on Ubuntu ?

admin/ March 28, 2016/ Docker, Linux/ 1 comments

How to install docker-machine on ubuntu ? There are four easy steps to install docker-machine on ubuntu -: Step 1-: $ sudo apt-get install -y curl Step 2-: $ sudo curl -L https://github.com/docker/machine/releases/download/v0.6.0/docker-machine-`uname -s`-`uname -m` > /usr/local/bin/docker-machine && \ chmod +x /usr/local/bin/docker-machine Step 3-: $ docker-machine Output-: Usage: docker-machine [OPTIONS] COMMAND [arg…] Create and manage machines running Docker. Version: 0.6.0,

Read More

How to install docker engine on ubuntu ?

admin/ March 14, 2016/ Docker, Linux/ 0 comments

To check your current kernel version, open a terminal and use uname -r to display your kernel version: $ uname -r 3.11.0-15-generic Install the recommended package. $ sudo apt-get install linux-image-extra-$(uname -r) Update your APT package index. $ sudo apt-get update Install Docker. $ sudo apt-get install docker-engine Start the docker daemon. $ sudo service docker start Verify docker is

Read More

How to Install and Manage Docker on CentOS/RHEL 7/6 ?

admin/ March 14, 2016/ Docker, Linux/ 0 comments

Docker is container-based application framework, which wrap of a specific application with all its dependencies in a container. Docker containers can easily to ship to remote location on start there without making entire application setup. This tutorial will help you to install and manage Docker on CentOS/RHEL 7/6 operating system. 1. Verify Requirements For standard installation Docker required 64 bit

Read More