Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What is the difference between gitlab runner and gitlab-runner... command?


Asked by Hunter Fischer on Dec 04, 2021 FAQ



When GitLab Runner is started as a system service (for example, with Systemd), the logs are in most cases logged through Syslog or other system logging mechanism. With GitLab Runner started as a Docker based service, since the gitlab-runner ... command is the main process of the container, the logs can be read using the docker logs command.
Just so,
GitLab runner is a build instance which is used to run the jobs over multiple machines and send the results to GitLab and which can be placed on separate users, servers, and local machine. You can register the runner as shared or specific after installing it. Click to see full answer.
Also Know, Running multiple instances of GitLab Runner using the same configuration file can cause unexpected and hard-to-debug behavior. In GitLab Runner 12.2 , only a single instance of GitLab Runner can use a specific config.toml file at one time. This error is often due to your shell loading your profile, and one of the scripts is causing the failure.
Furthermore,
gitlab-runner exec docker can only be used when Docker is installed locally. This is needed because GitLab Runner is using host-bind volumes to access the Git sources. GitLab Runner is distributed as a single binary and contains a few internal commands that are used during builds.
Accordingly,
When you use separate machines, you can have different operating systems and tools, like Kubernetes or Docker, on each. GitLab Runner is open-source and written in Go. It can be run as a single binary; no language-specific requirements are needed. You can install GitLab Runner on several different supported operating systems.