Build Docker image, Install and Run Ubuntu 14.04 inside docker

docker build -t="dockerfile/ubuntu" github.com/dockerfile/ubuntu

You can refer to dockerfile syntax at https://github.com/dockerfile/ubuntu/blob/master/Dockerfile

sudo docker ps -l
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b034e8ed6edb dockerfile/ubuntu "bash" 10 minutes ago Up 8 minutes brave_engelbart
sudo docker container start b034e8ed6edb

This will start the docker container with ubuntu 14.04 as base image,

READ  Check if user is registered or not in wordpress and redirect URL after login

You can login to shell as,

sudo docker run -it dockerfile/ubuntu

Leave a Reply

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