Kubernetes + Docker
Kubernetes + Docker
PREREQUISITES :
Hardware Prerequisites:
Processor:
For Linux: 64-bit processor with Intel VT-x or AMD-V support
For Windows: Intel processor with Virtualization Technology
(VT-x) and Execute Disable (XD) Bit functionality enabled in
BIOS/UEFI settings
Memory (RAM):
Minimum: 2 GB
Recommended: 4 GB or higher
Disk Space:
Minimum: 20 GB free disk space
Recommended: 40 GB or higher free disk space
Network:
A stable internet connection for downloading Docker
packages and images.
Software Prerequisites:
Operating System:
Ubuntu: 16.04 LTS or later, CentOS, Debian, Fedora, etc.
Windows 7/10/11 64-bit
Virtualization Technology:
For Windows:
Virtualization technology must be enabled in
BIOS/UEFI settings.
Hyper-V enabled (Docker Desktop for Windows uses
Hyper-V as the virtualization backend)
For Linux:
Kernel version 3.10 or higher with support for cgroups
and namespaces.
Applications:
Git Client : https://git-scm.com/downloads
Visual Studio Code : https://code.visualstudio.com/ [Or any
other code editor]
INSTALLATION PROCESS:
6. Click the Sign Up button and it will open the browser window for traditional
signup page
BUILD IMAGE
Before you can run the application, you need to get the application
source code onto your machine.
# syntax=docker/dockerfile:1
FROM node:18-alpine
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "src/index.js"]
EXPOSE 3000
1. Run your container using the docker run command and specify the name of
the image you just created:
5. In the command line, run the docker push command that you see on
Docker Hub.
docker push docker/getting-started
6. You got an error “An image does not exist locally with the tag:
docker/getting-started”. Because the push command was looking for an
image named docker/getting-started, but didn't find one.
7. To fix it first Sign in to Docker Hub using the command docker login -u
YOUR-USER-NAME.
docker login -u YOUR-USER-NAME
8. Use the docker tag command to give the getting-started image a new
name. Replace YOUR-USER-NAME with your Docker ID.
docker tag getting-started YOUR-USER-NAME/getting-started
9. Now run the docker push command again.
docker push YOUR-USER-NAME/getting-started
Now that your image has been built and pushed into a registry, try running your
app on a brand new instance that has never seen this container image.
OUTPUT :
REFERENCES:
FAQs:
PREREQUISITES :
Hardware Prerequisites:
Processor:
For Linux: 64-bit processor with Intel VT-x or AMD-V support
For Windows: Intel processor with Virtualization Technology
(VT-x) and Execute Disable (XD) Bit functionality enabled in
BIOS/UEFI settings
Memory (RAM):
Minimum: 2 GB
Recommended: 4 GB or higher
Disk Space:
Minimum: 20 GB free disk space
Recommended: 40 GB or higher free disk space
Network:
A stable internet connection for downloading Docker
packages and images.
Software Prerequisites:
Operating System:
Ubuntu: 16.04 LTS or later, CentOS, Debian, Fedora, etc.
Windows 7/10/11 64-bit
Container Runtime:
Applications:
Git Client : https://git-scm.com/downloads
Visual Studio Code : https://code.visualstudio.com/ [Or any
other code editor]
INSTALLATION PROCESS:
minikube start
minikube dashboard
REFERENCES
FAQs