Error in a build plan for Docker with MQ

The name of the pictureThe name of the pictureThe name of the pictureClash 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






share|improve this question


























    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






    share|improve this question
























      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






      share|improve this question














      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








      share|improve this question













      share|improve this question




      share|improve this question








      edited May 18 at 5:05









      Kevin Bowen

      13.8k145769




      13.8k145769










      asked May 17 at 13:15









      Bob G.

      11




      11




















          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.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            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






























            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.






            share|improve this answer
























              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.






              share|improve this answer






















                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.






                share|improve this answer












                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 17 at 17:37









                Bob G.

                11




                11






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    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













































































                    Popular posts from this blog

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Trouble downloading packages list due to a “Hash sum mismatch” error

                    How do I move numbers in filenames, in a batch renaming operation?