Sign inSign up

yezz123/easybooking

By yezz123

•Updated over 5 years ago

EasyBooking gives you amazing diversity and variety of choices – all in one place.

Image
0

239

yezz123/easybooking repository overview

⁠Build EasyBooking with Docker :rocket:

⁠Introduction

  • The Docker platform allows developers to package and run applications as containers. A container is an isolated process that runs on a shared operating system, offering a lighter-weight alternative to virtual machines. Though containers are not new, they offer benefits — including process isolation and environment standardization — that are growing in importance as more developers use distributed application architectures.

  • When building and scaling an application with Docker, the starting point is typically creating an image for your application, which you can then run in a container. The image includes your application code, libraries, configuration files, environment variables, and runtime. Using an image ensures that the environment in your container is standardized and contains only what is necessary to build and run your application.

⁠Using The Repository to Work with Image :rocket:

  • build the application image using the docker build command. Using the -t flag with docker build will allow you to tag the image with a memorable name. Because we are going to push the image to Docker Hub, let’s include our Docker Hub username in the tag. We will tag the image as easybooking, but feel free to replace this with a name of your own choosing. Remember to also replace your_dockerhub_username with your own Docker Hub username:
docker build -t your_dockerhub_username/easybooking .
  • The . specifies that the build context is the current directory.

  • It will take a minute or two to build the image. Once it is complete, check your images:

docker images
  • Run the following command to build the container:
docker run --name easybooking -p 80:8080 -d your_dockerhub_username/easybooking
  • Once your container is up and running, you can inspect a list of your running containers with docker ps :
docker ps

Tag summary

Content type

Image

Digest

Size

538.3 MB

Last updated

over 5 years ago

docker pull yezz123/easybooking