How to add credentials to my private docker registry?

Hi, I’m running Drone on my server using the docker container drone/drone:0.7.

I need to pull the image for my build from a private registry. how can I add the credentials?

I found but I’m not able to docker exec into the container.

docker exec -ti drone-server drone --version
rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:262: starting container process caused "exec: \"drone\": executable file not found in $PATH"

Can I add the credentials using secrets in the UI?


I installed the drone CLI, but there is nothing like drone repository

Downloaded from

drone --help
   drone - command line utility

   drone [global options] command [command options] [arguments...]


   agent        starts the drone agent
   agents       manage agents
   build        manage builds
   deploy       deploy code
   exec         execute a local build
   info         show information about the current user
   secret       manage secrets
   server       starts the drone server daemon
   sign         creates a secure yaml file
   repo         manage repositories
   user         manage users
   org          manage organizations
   global       manage global state
   help, h      Shows a list of commands or help for one command

   -t, --token          server auth token [$DRONE_TOKEN]
   -s, --server         server location [$DRONE_SERVER]
   --help, -h           show help
   --version, -v        print the version

The correct download links can be found at