Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

260
Views
Makefile hangs when docker-compose -d is used and fails with code 129 without -d

for reference, my rule looks like this:

aRule:
    docker-compose exec -d service /bin/bash -c "/path/to/drush -y drush-commmand"

On Ubuntu 16.04 and 14.04, if I run a command such as docker-compose exec -d service /bin/bash -c "/path/to/drush -y drush-commmand in a Makefile rule, Makefile hangs and then fails due to MemoryError from the docker container. This command, however, works in both centos and docker-machine.

I try to substitute the command with docker-compose exec service /bin/bash -c "path/to/drush -y drush-command (without the -d flag) and this time the drush command succeeds, however the Makefile fails with error code 129.

I then try to rectify the issue with the modified command, docker-compose exec service /bin/bash -c "path/to/drush -y drush-command 1>/dev/null", this works... but seems a bit hack-ish

What is the correct way of doing this and why am I getting the aforementioned errors?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!