Error in a build plan for Docker with MQ

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
We are trying to create a build plan with MQ inside a Docker Container using Ubuntu. the sudo command doesn't work inside the Dockerfile so we can't use that solution found on the web. Here are the errors we are getting:
build 16-May-2018 09:43:53 .[91mW: chown to _apt:root of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (12: Cannot allocate memory)
build 16-May-2018 09:43:53 W: chmod 0700 of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (12: Cannot allocate memory)
plus:
error 16-May-2018 09:43:54 The command '/bin/sh -c apt-get install -y --no-install-recommends bash ca-certificates coreutils curl debianutils findutils grep libc-bin mount passwd procps sed tar util-linux apt-utils bc file gawk lsb-release vim' returned a non-zero code: 100
simple 16-May-2018 09:43:54 Failing task since return code of [/bin/sh /opt/lforge/atlassian_data/bamboo_home/temp/MI-IWMFD-JOB1-20-ScriptBuildTask-6009970739082824316.sh] was 100 while expected 0
simple 16-May-2018 09:43:54 Finished task 'Build Docker Image' with result: Failed
compiling docker
add a comment |Â
up vote
0
down vote
favorite
We are trying to create a build plan with MQ inside a Docker Container using Ubuntu. the sudo command doesn't work inside the Dockerfile so we can't use that solution found on the web. Here are the errors we are getting:
build 16-May-2018 09:43:53 .[91mW: chown to _apt:root of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (12: Cannot allocate memory)
build 16-May-2018 09:43:53 W: chmod 0700 of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (12: Cannot allocate memory)
plus:
error 16-May-2018 09:43:54 The command '/bin/sh -c apt-get install -y --no-install-recommends bash ca-certificates coreutils curl debianutils findutils grep libc-bin mount passwd procps sed tar util-linux apt-utils bc file gawk lsb-release vim' returned a non-zero code: 100
simple 16-May-2018 09:43:54 Failing task since return code of [/bin/sh /opt/lforge/atlassian_data/bamboo_home/temp/MI-IWMFD-JOB1-20-ScriptBuildTask-6009970739082824316.sh] was 100 while expected 0
simple 16-May-2018 09:43:54 Finished task 'Build Docker Image' with result: Failed
compiling docker
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
We are trying to create a build plan with MQ inside a Docker Container using Ubuntu. the sudo command doesn't work inside the Dockerfile so we can't use that solution found on the web. Here are the errors we are getting:
build 16-May-2018 09:43:53 .[91mW: chown to _apt:root of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (12: Cannot allocate memory)
build 16-May-2018 09:43:53 W: chmod 0700 of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (12: Cannot allocate memory)
plus:
error 16-May-2018 09:43:54 The command '/bin/sh -c apt-get install -y --no-install-recommends bash ca-certificates coreutils curl debianutils findutils grep libc-bin mount passwd procps sed tar util-linux apt-utils bc file gawk lsb-release vim' returned a non-zero code: 100
simple 16-May-2018 09:43:54 Failing task since return code of [/bin/sh /opt/lforge/atlassian_data/bamboo_home/temp/MI-IWMFD-JOB1-20-ScriptBuildTask-6009970739082824316.sh] was 100 while expected 0
simple 16-May-2018 09:43:54 Finished task 'Build Docker Image' with result: Failed
compiling docker
We are trying to create a build plan with MQ inside a Docker Container using Ubuntu. the sudo command doesn't work inside the Dockerfile so we can't use that solution found on the web. Here are the errors we are getting:
build 16-May-2018 09:43:53 .[91mW: chown to _apt:root of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (12: Cannot allocate memory)
build 16-May-2018 09:43:53 W: chmod 0700 of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (12: Cannot allocate memory)
plus:
error 16-May-2018 09:43:54 The command '/bin/sh -c apt-get install -y --no-install-recommends bash ca-certificates coreutils curl debianutils findutils grep libc-bin mount passwd procps sed tar util-linux apt-utils bc file gawk lsb-release vim' returned a non-zero code: 100
simple 16-May-2018 09:43:54 Failing task since return code of [/bin/sh /opt/lforge/atlassian_data/bamboo_home/temp/MI-IWMFD-JOB1-20-ScriptBuildTask-6009970739082824316.sh] was 100 while expected 0
simple 16-May-2018 09:43:54 Finished task 'Build Docker Image' with result: Failed
compiling docker
edited May 18 at 5:05
Kevin Bowen
13.8k145769
13.8k145769
asked May 17 at 13:15
Bob G.
11
11
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
A member of my team (Darren) came up with a solution. Docker uses a default of 2g. Changed the docker command so it had parameters -m 4g to get extra memory.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
A member of my team (Darren) came up with a solution. Docker uses a default of 2g. Changed the docker command so it had parameters -m 4g to get extra memory.
add a comment |Â
up vote
0
down vote
A member of my team (Darren) came up with a solution. Docker uses a default of 2g. Changed the docker command so it had parameters -m 4g to get extra memory.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
A member of my team (Darren) came up with a solution. Docker uses a default of 2g. Changed the docker command so it had parameters -m 4g to get extra memory.
A member of my team (Darren) came up with a solution. Docker uses a default of 2g. Changed the docker command so it had parameters -m 4g to get extra memory.
answered May 17 at 17:37
Bob G.
11
11
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037406%2ferror-in-a-build-plan-for-docker-with-mq%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password