Have you failed a job interview?
Send us your job interview questions and get correct answers.

How do you run a docker image app1 in detached mode and name the container mycontainer1?

Experience Level: Junior
Tags: DockerDocker CLI

Answer

Run the following command:

docker run -d --name=mycontainer1 app1

Comments

No Comments Yet.
Be the first to tell us what you think.
Docker for beginners
Docker for beginners

Are you learning Docker ? Try our test we designed to help you progress faster.

Test yourself
Kubernetes Certified Application Developer (CKAD) preparation
Kubernetes Certified Application Developer (CKAD) preparation

Are you learning Docker ? Try our test we designed to help you progress faster.

Test yourself