Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Forking not working when perl runs in Docker

by neilwatson (Priest)
on Nov 05, 2016 at 13:29 UTC ( #1175348=perlquestion: print w/replies, xml ) Need Help??
neilwatson has asked for the wisdom of the Perl Monks concerning the following question:

Greetings,

I have an IRC bot using Bot::BasicBot and it does some forking to lookup requested data. It runs without problems, until I put it in a docker container. When in docker some forks seem not to happen. Has anyone experience this?

Neil Watson
watson-wilson.ca

  • Comment on Forking not working when perl runs in Docker

Replies are listed 'Best First'.
Re: Forking not working when perl runs in Docker
by GrandFather (Sage) on Nov 05, 2016 at 19:55 UTC

    I will look at a small self contained example script that demonstrates the problem, but I'm not going to go off site to chase down some code that I probably can't easily run to help solve an issue that is of minor interest to me.

    It's unlikely to be a Perl issue so much as something missing from the Docker image. Check your logs and make sure you use strictures (use strict; use warnings; - see The strictures, according to Seuss).

    Premature optimization is the root of all job security
Re: Forking not working when perl runs in Docker
by talexb (Canon) on Nov 07, 2016 at 17:03 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1175348]
Approved by Discipulus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2019-04-23 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (117 votes). Check out past polls.

    Notices?