Command: docker run drone/drone:2, who issues the command and when?

Hi
Totally new to Gitea and Drone, here, going through the initial installation and configuration.

Article at: Gitea | Drone
Indicates that to start the server, to use the following command:

docker run \
  --volume=/var/lib/drone:/data \
  --env=DRONE_GITEA_SERVER=https://try.gitea.io \
  --env=DRONE_GITEA_CLIENT_ID=05136e57d80189bef462 \
  --env=DRONE_GITEA_CLIENT_SECRET=7c229228a77d2cbddaa61ddc78d45e \
  --env=DRONE_RPC_SECRET=super-duper-secret \
  --env=DRONE_SERVER_HOST=drone.company.com \
  --env=DRONE_SERVER_PROTO=https \
  --publish=80:80 \
  --publish=443:443 \
  --restart=always \
  --detach=true \
  --name=drone \
  drone/drone:2

Questions:
Which user is supposed to issue such command? root or some other one?
Is this a one-time command per reboot? or one per pipeline?

Which user is supposed to issue such command? root or some other one?

Either root or a user you’ve already configured in the docker group since a new user doesn’t have docker permission.

Is this a one-time command per reboot?

Notice the --restart=always flag. That will automatically restart on reboot. So, a one-time command.

Thanks for super-fast reply. Moving on. I guess I don’t know anything about docker, either…learning 3 different things at the same time gitea, drone, docker.

Hello @German_Salazar

I recently made this Drone quickstart video Drone CI Quickstart - YouTube

It uses GitHub, not Gitea, but it covers running the docker commands to start the server and the runner. Let me know if you have more questions.