"docker run" requires at least 1 argument + Run a command in a new container

Thursday, November 14, 2024 5:23:30 PM
  • Posted: Monday, February 18, 2019 9:08 AM
  • 8
have an issue in first step in your tutorial:
https://grandnode.com/grandnode-and-mongodb-in-a-3-minutes-the-fastest-installation-with-docker
When I try to excuse this command:
docker run -d -p 127.0.0.1:27017:27017 --name mongodb mongo
it says:
"docker run" requires at least 1 argument.
See 'docker run --help'.
Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
Run a command in a new container

Any help here please, thanks
0
  • Posted: Monday, February 18, 2019 10:43 AM
  • 953
It should works. I checked it on my test environment. Can you share the screen from the cmd?
Best regards,
Patryk

GrandNode Team
0
  • Posted: Monday, February 18, 2019 5:43 PM
  • 8
0
  • Posted: Monday, February 18, 2019 5:45 PM
  • 8
0
  • Posted: Monday, February 18, 2019 5:48 PM
  • 8
0
  • Posted: Monday, February 18, 2019 5:49 PM
  • 8
root@docker-grandnode-mongo:~# docker run -d -p 127.0.0.1:27017:27017 --name mongodb mongo
"docker run" requires at least 1 argument.
See 'docker run --help'.

Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

Run a command in a new container
0
  • Posted: Tuesday, February 19, 2019 6:42 AM
  • 8
docker: Error response from daemon: pull access denied for grandnode, repository does not exist or may require 'docker login'.
whats is the Login?
0
  • Posted: Tuesday, February 19, 2019 7:07 AM
  • 953
Hi Mohamed,

You probably ran command docker pull grandnode and the daemon didn't find the GrandNode image, because you need to specify tag, i.e docker pull grandnode/develop.

In the case of your first command. Please try to delete unused containers and run it again. You need to remember that if you have installed MongoDB manually on 27017 port, you have to use different port while use the docker run -d -p 127.0.0.1:27017:27017 --name mongodb mongo command.

Please look at the example below, I used the same command and it worked as expected:


Best regards,
Patryk

GrandNode Team
0
  • Posted: Tuesday, February 19, 2019 7:21 AM
  • 8
I've used Mac Terminal for the first time and did not work, but it worked with Windows CMD.
Now i have an issue with:
docker run -d -p 80:80 --name grandnode --link mongodb:mongo grandnode/release_4.10
Where it says:
Unable to find image 'grandnode/release_4.10:latest' locally
docker: Error response from daemon: pull access denied for grandnode/release_4.10, repository does not exist or may require 'docker login'.
See 'docker run --help'.
0
  • Posted: Tuesday, February 19, 2019 8:08 AM
  • 953
If you want to use GrandNode 4.10, please use the docker image - grandnode/grandnode:4.10

But please note, that we recommend using the latest version. Current latest stable version is 4.30.
Best regards,
Patryk

GrandNode Team
0
back to top
Filters