Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

625
Visualizações
How to run docker daemon?

I'm trying to run docker daemon using command:

docker -d

but I receive in console:

unknown shorthand flag: 'd' in -d

what should I do to run docker daemon?

about 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

If you stopped the service, you would need the following command to start it again:

$ sudo service docker start   # for work with SysVinit
$ sudo systemctl start docker # for work with Systemd

Also to stopped again, you might use:

$ sudo service docker stop   # for work with SysVinit
$ sudo systemctl stop docker # for work with Systemd
about 4 years ago · Santiago Trujillo Relatório

0

I believe the question is how to run the docker in detached mode and connect back, suppose one has Ubuntu image one can try this

sudo docker run -it -d --name myubdocker ubuntu:latest bash

It will detach the docker and one can see it running when one tries this

sudo docker ps

Now how will one attach back to the same docker, thru the following command (CONTAINERID will be listed when one does (docker ps)

sudo docker exec -it <CONTAINERID> bash

This will give a root command prompt ( can one type exit and again connect back )

about 4 years ago · Santiago Trujillo Relatório

0

The -d flag is used with docker run command to run a container in detached mode.

What you're looking for might be docker-machine start :

docker-machine start [arg...]

This command starts a machine with one or more machine names as arguments. For example:

$ docker-machine start dev
about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda