Skip to content

This repository offers a basic Dockerfile using alpine:latest to create a Docker image that prints "Hello, Captain!" upon execution

Notifications You must be signed in to change notification settings

roadmap-sh-kzwolenik95/basic-dockerfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Prerequisites:

  • docker installed

How to run:

docker buildx build -t hello-captain:1.0 .

# List the new image
docker image ls hello-captain

# Run the image
docker run hello-captain:1.0

# List runs:
docker ps -a --filter "ancestor=hello-captain:1.0"


# CLEANUP
# Remove stopped containers:
docker rm $(docker ps -a --filter "ancestor=hello-captain:1.0" -q)

# Remove the image:
docker rmi hello-captain:1.0

Project description:

https://roadmap.sh/projects/basic-dockerfile

About

This repository offers a basic Dockerfile using alpine:latest to create a Docker image that prints "Hello, Captain!" upon execution

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published