Opção run
com interatividade:
$ docker run -it nome_da_imagem [comando]
Executando em background:
$ docker run -d nome_da_imagem
const addCounter = (list) => { | |
return [...list, 0]; | |
}; | |
const removeCounter = (list, index) => {\ | |
return [ | |
...list.slice(0, index), | |
...list.slice(index + 1) | |
]; | |
}; |