Skip to content

Commit

Permalink
Add 01-hello_world
Browse files Browse the repository at this point in the history
  • Loading branch information
marcio-pessoa committed Apr 15, 2024
1 parent 950e546 commit b85443d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 01-hello_world/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ubuntu

COPY hello.sh /usr/bin

CMD [ "/usr/bin/hello.sh" ]
3 changes: 3 additions & 0 deletions 01-hello_world/hello.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

echo "Hello world!"
32 changes: 32 additions & 0 deletions 01-hello_world/perguntas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 01 - Hello world

## Perguntas

1. A instrução IMAGE é opcional e tem o único propósito de ser uma referência.

- [ ] Verdadeiro
- [ ] Falso

2. O comando `docker build` é usado para construir uma imagem de container.

- [ ] Verdadeiro
- [ ] Falso

3. Qual instrução é usada para copiar arquivos entre o sistema de arquivos local e o sistema de arquivos do container?

- [ ] RSYNC
- [ ] CP
- [ ] COPY
- [ ] SYNC

4. Quando uma imagem de container não é encontrada no sistema de arquivos local ela é coletada (pull) apenas do Docker Hub?

- [ ] Sim, pois ao usar Docker só é possível usar o Docker Hub
- [ ] Não, pois não é recomendável fazer pull de imagens da Internet
- [ ] Sim, pois o Docker Hub é o único Container Registry confiável
- [ ] Não, pois há inumeros Containers Registry

5. O comando `docker run` executa apenas imagens de container criadas localmente.

- [ ] Verdadeiro
- [ ] Falso

0 comments on commit b85443d

Please sign in to comment.