Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comando de criação do contêiner #3

Open
apenaz opened this issue Mar 10, 2020 · 0 comments
Open

comando de criação do contêiner #3

apenaz opened this issue Mar 10, 2020 · 0 comments

Comments

@apenaz
Copy link

apenaz commented Mar 10, 2020

$ docker run -d ubuntu /bin/sh -c "while true; do echo hello world; sleep 1; done"

Nos parágrafos relacionados a este comando na "Aula 1" dão a entender que ele ficara em execução no terminal mas o -d faz o desacoplamento entre o contêiner e o terminal. O correto não seria como abaixo?

$ docker run -it ubuntu /bin/sh -c "while true; do echo hello world; sleep 1; done"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant