Lab 1: Docker Basics
Create a folder called myapp
mkdir myapp && cd myappCreating Dockerfile
nano Dockerfileadd the below lines to the Dockerfile
FROM alpine:3.5
RUN apk update
RUN apk add gitBuild Docker Image
docker build -t microfocus/alpine-git .Tagging image as labs-git
docker tag microfocus/alpine-git microfocus/labs-git:v1.0Verify the Images
docker imagesCreate a Simple docker Container
docker run -itd microfocus/labs-git:v1.0 /bin/shdocker psEnter into Container Shell
Login to the Docker Container using Container ID
Verify if GIT is installed
Run the Command inside the container
Last updated
Was this helpful?