Executando o bash de um container

From Basef
Revision as of 07:51, 28 June 2017 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Para executar o bash de um container:

docker exec -it nome_do_container bash

Para criar um novo container e executar o bash:

docker run -it nome_da_imagem bash