"sudo docker -d &" - flag provided but not defined: -d

Hi,

I’m new and working on the third tutorial. When I run the command “sudo docker -d &”, I received the error:

  • flag provided but not defined: -d.

could it be my installation is missing something. But the docker running as service works fine.

thanks for any insight.
Ben

The -d flag was deprecated in favor of the daemon command. Do you have a link to the tutorial you are using that is still referencing the -d flag?

/Jeff

Yes, it is the third tutorial Docker Operations at 11th minute that uses the -d option.

Thank you,
Ben

What is the URL of the tutorial?

https://training.docker.com/self-paced-training
Docker Operations

I just hit the same issue. Are there plans to resolve this? It lengthened my 60 minute course by 20 minutes while I tried to figure out why the -d option wasn’t working for me.