/tmp/bitrise764150571/step_src/._script_cont: line 4: 1368 Killed

Running a command with docker / docker-compose I get:

/tmp/bitrise764150571/step_src/._script_cont: line 4:  1368 Killed                  some command

This is usually due to memory/RAM limit. The Linux VMs don’t have swap configured, so when you reach the RAM limit you can’t allocate more.

E.g. in our case it was a RAM limit config we had in our docker-compose.yml.
Bumping it from mem_limit: 512m to mem_limit: 1024m solved the issue.

Locally we did not have this issue because we had swap configured, so 512MB RAM is actually more than that, but without swap 512MB RAM is 512MB RAM.