How To Install and Use Docker on Ubuntu 22.04
uname
docker run -it node
docker run -it ubunto
docker images
###Name : Dockerfile
# Use the official Node.js image
FROM node:18
# Set the working directory inside the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the application port
EXPOSE 3000
# Start the application
CMD ["npm", "start"]
docker build -t aws-app .
docker run -p 3000:3000 aws-app
docker rmi id
docker rmi -f id
docker ps
docker stop id
docker login
docker push mamun16/aws-app:latest
docker tag a7528f46e562 mamun16/aws-app:latest