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
5 changes: 5 additions & 0 deletions Dockerfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:lts-alpine
COPY ./root
RUN npm install express mysql
CMD node/root/index.js
EXPOSE 3000
44 changes: 26 additions & 18 deletions answers.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,49 @@
# Answers

Lastname:
Firstname:
Lastname:Rognon
Firstname:Gautier

## 2.2
command:
command:docker run app

## 2.3
question:
command:
question:the reason why we can't acces is because the port are not opened yet.
command:docker run -p 3000:3000 index.js

## 2.5
question:
command:
question:to make it work, both local image and repository name's have to match
command:docker tag index.js gautierrr/devops-lab
docker push gautierrr/devops-lab

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

question:
command:
question: we push and start a container
command:docker pull gautierrr/devops-lab

command:
command:docker create gautierrr/devops-lab
docker run gautierrr/devops-lab

## 2.7
question:
question:
command:
question:We can look at running container using the command "docker ps"
question:the name of my container is "furious_heisenberg"
command:docker ps

command:
command:docker rename

## 2.8
question:
output:
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.8.1
PRETTY_NAME="Alpine Linux v3.8"
HOME_URL="http://alpinelinux.org/"
BUG_REPORT_URL="http://bugs.alpinelinux.org/"

## 3.1
command:
command:docker-compose up

## 3.4
command:
command:
command:docker-compose up -d
command:docker-compose logs
4 changes: 4 additions & 0 deletions docker-compose.yml.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version: '3'
services:
my-service:
image: gautierrr/devops-lab
Empty file added express.js
Empty file.
Loading