Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

878
Views
"docker container run" requires at least 1 argument

I'm trying to create a container using a volume that I have already created, but my console shows the error

docker container run" requires at least 1 argument

This is the command I'm trying to run:

docker container run --name db -v volume-dados-do-banco:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=Mypass

I have also tried this one, wih more arguments, but the same error persists:

docker container run -d --name db -p 3306:3306 -e 'ACCEPT_EULA=Y' -e MYSQL_ROOT_PASSWORD=Mypass -v volume-dados-do-banco:/var/lib/mysql

Any thoughts on the reason why this is happening?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Problem is not with docker, you just didn't specify which image to run. Your command should include Docker image as per documentation.

docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]

Example would be:

docker run -d --name db -v volume-dados-do-banco:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=Mypass mysql:latest
over 4 years ago · Santiago Trujillo Report

0

i just had the same problem with psql my password simply contained & and i needed to escape it with / before &

over 4 years ago · Santiago Trujillo Report

0

try the below command.. it seems a syntax error on your command..

docker container run -d --name db -v volume-dados-do-banco:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=Mypass
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!