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,

You can login to shell as,

sudo docker run -it dockerfile/ubuntu
Follow Lynxbee
Tags:

Leave a Reply / Ask Question