-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
950e546
commit b85443d
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
echo "Hello world!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |