Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

index copie.js
38 changes: 23 additions & 15 deletions answers.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,44 @@
# Answers

Lastname:
Firstname:
Lastname: GUEZ
Firstname: Raphael

## 2.2
command:
command: sudo docker run app

## 2.3
question:
command:
question: Port are closed so we can't access to them
command: sudo docker run -p 3000:3000 app

## 2.5
question:
command:
question: We must log in and tag it
command: docker login
command: docker tag project-raph raphguez/devops-lab
command: docker push raphguez/devops-lab

## 2.6
command:
command: docker system prune -a

question:
command:
question: It downloaded the last image pushed
command: docker pull raphguez/devops-lab
docker create raphguez/devops-lab
docker run raphguez/devops-lab

command:
STATUS PORTS NAMES
709eac424943 raphguez/devops-lab "/bin/sh -c 'node /r…" 3 minutes ago Up 3 minutes thirsty_gold

MBP-de-Arie:~ raphaelguez$

## 2.7
question:
question:
command:
question: we use the command docker ps -a
question: Its name is thirsty_gold
command: docker ps -a
command: docker start -d --name api raphguez/devops-lab

command:

## 2.8
question:
question: docker run -it raphguez/devops-lab /bin/bash
output:

## 3.1
Expand Down
5 changes: 5 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node
COPY index.js /root/
RUN npm install express
RUN npm install mysql
CMD node /root/index.js
Loading