How to use local docker images with microk8s? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!How is Docker different from a virtual machine?Should I use Vagrant or Docker for creating an isolated environment?How to remove old Docker containersHow does one remove an image in Docker?How to copy Docker images from one host to another without using a repositoryHow do I get into a Docker container's shell?Docker command can't connect to Docker daemonHow to force Docker for a clean build of an imageHow to use local docker images with Minikube?On Windows Setup, how can I get docker image from local machine

Is there any word for a place full of confusion?

Do I really need to have a message in a novel to appeal to readers?

Why do we bend a book to keep it straight?

Time to Settle Down!

Can a new player join a group only when a new campaign starts?

Why is it faster to reheat something than it is to cook it?

How to compare two different files line by line in unix?

What would you call this weird metallic apparatus that allows you to lift people?

What is the appropriate index architecture when forced to implement IsDeleted (soft deletes)?

Project Euler #1 in C++

What does it mean that physics no longer uses mechanical models to describe phenomena?

How could we fake a moon landing now?

Effects on objects due to a brief relocation of massive amounts of mass

Is it a good idea to use CNN to classify 1D signal?

ArcGIS Pro Python arcpy.CreatePersonalGDB_management

Illegal assignment from sObject to Id

How can I reduce the gap between left and right of cdot with a macro?

Why do early math courses focus on the cross sections of a cone and not on other 3D objects?

Why should I vote and accept answers?

Denied boarding although I have proper visa and documentation. To whom should I make a complaint?

An adverb for when you're not exaggerating

Why weren't discrete x86 CPUs ever used in game hardware?

What are the out-of-universe reasons for the references to Toby Maguire-era Spider-Man in Into the Spider-Verse?

How were pictures turned from film to a big picture in a picture frame before digital scanning?



How to use local docker images with microk8s?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!How is Docker different from a virtual machine?Should I use Vagrant or Docker for creating an isolated environment?How to remove old Docker containersHow does one remove an image in Docker?How to copy Docker images from one host to another without using a repositoryHow do I get into a Docker container's shell?Docker command can't connect to Docker daemonHow to force Docker for a clean build of an imageHow to use local docker images with Minikube?On Windows Setup, how can I get docker image from local machine



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I have been using minikube to test Kubernetes locally. In minikube, we can use local docker images by using eval $(minikube docker-env) command.



I started to explore microk8s. Installed microk8s using snap on my machine running on Ubuntu 18.



Is there any way to use local docker images with microk8s like we use minikube for testing and development other than creating local docker registry?



microk8s.docker command is also not working, it's showing:




Command 'microk8s.docker' not found, but can be installed with:



snap install microk8s




but its already installed.










share|improve this question






























    1















    I have been using minikube to test Kubernetes locally. In minikube, we can use local docker images by using eval $(minikube docker-env) command.



    I started to explore microk8s. Installed microk8s using snap on my machine running on Ubuntu 18.



    Is there any way to use local docker images with microk8s like we use minikube for testing and development other than creating local docker registry?



    microk8s.docker command is also not working, it's showing:




    Command 'microk8s.docker' not found, but can be installed with:



    snap install microk8s




    but its already installed.










    share|improve this question


























      1












      1








      1








      I have been using minikube to test Kubernetes locally. In minikube, we can use local docker images by using eval $(minikube docker-env) command.



      I started to explore microk8s. Installed microk8s using snap on my machine running on Ubuntu 18.



      Is there any way to use local docker images with microk8s like we use minikube for testing and development other than creating local docker registry?



      microk8s.docker command is also not working, it's showing:




      Command 'microk8s.docker' not found, but can be installed with:



      snap install microk8s




      but its already installed.










      share|improve this question
















      I have been using minikube to test Kubernetes locally. In minikube, we can use local docker images by using eval $(minikube docker-env) command.



      I started to explore microk8s. Installed microk8s using snap on my machine running on Ubuntu 18.



      Is there any way to use local docker images with microk8s like we use minikube for testing and development other than creating local docker registry?



      microk8s.docker command is also not working, it's showing:




      Command 'microk8s.docker' not found, but can be installed with:



      snap install microk8s




      but its already installed.







      docker kubernetes minikube microk8s






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 2 at 16:50









      Eduardo Baitello

      949422




      949422










      asked Mar 22 at 10:10









      techridertechrider

      63




      63






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Unfortunately you did not provide microk8 version and your steps.



          I supposed that you used sudo snap install microk8s --classic command to install. Currently it will download v1.14.0.

          You can check your version using snap info microk8s



          Version 1.14.0 introduced changes in microk8s.daemon-docker and change it to microk8s.daemon-containerd. Due to this change microk8s cannot execute docker commands. Microk8s contains daemon-docker between versions 1.11 and 1.13.



          If you are used to use docker install microk8s v1.13 by sudo snap install microk8s --classic --channel=1.13/stable



          For future use:



          1) Install microk8s - sudo snap install microk8s --classic --channel=1.13/stable (if still want use docker)



          2) Make sure that microk8s is started - microk8s.start (you can stop it by microk8s.stop)



          3) Check what services are running by - microk8s.inspect



          4) Commands in microk8s differs prefix, i.e instead of
          - kubectl get all --all-namespaces you need to use microk8s.kubectl get all --all-namespaces (later you can use allias to chage it)



          5) You can create image via Dockerfile using microk8s.docker build . (don't forget to have Dockerfile and "." on the end of the command).



          You can always check Microk8s documentation






          share|improve this answer

























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55297278%2fhow-to-use-local-docker-images-with-microk8s%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Unfortunately you did not provide microk8 version and your steps.



            I supposed that you used sudo snap install microk8s --classic command to install. Currently it will download v1.14.0.

            You can check your version using snap info microk8s



            Version 1.14.0 introduced changes in microk8s.daemon-docker and change it to microk8s.daemon-containerd. Due to this change microk8s cannot execute docker commands. Microk8s contains daemon-docker between versions 1.11 and 1.13.



            If you are used to use docker install microk8s v1.13 by sudo snap install microk8s --classic --channel=1.13/stable



            For future use:



            1) Install microk8s - sudo snap install microk8s --classic --channel=1.13/stable (if still want use docker)



            2) Make sure that microk8s is started - microk8s.start (you can stop it by microk8s.stop)



            3) Check what services are running by - microk8s.inspect



            4) Commands in microk8s differs prefix, i.e instead of
            - kubectl get all --all-namespaces you need to use microk8s.kubectl get all --all-namespaces (later you can use allias to chage it)



            5) You can create image via Dockerfile using microk8s.docker build . (don't forget to have Dockerfile and "." on the end of the command).



            You can always check Microk8s documentation






            share|improve this answer





























              0














              Unfortunately you did not provide microk8 version and your steps.



              I supposed that you used sudo snap install microk8s --classic command to install. Currently it will download v1.14.0.

              You can check your version using snap info microk8s



              Version 1.14.0 introduced changes in microk8s.daemon-docker and change it to microk8s.daemon-containerd. Due to this change microk8s cannot execute docker commands. Microk8s contains daemon-docker between versions 1.11 and 1.13.



              If you are used to use docker install microk8s v1.13 by sudo snap install microk8s --classic --channel=1.13/stable



              For future use:



              1) Install microk8s - sudo snap install microk8s --classic --channel=1.13/stable (if still want use docker)



              2) Make sure that microk8s is started - microk8s.start (you can stop it by microk8s.stop)



              3) Check what services are running by - microk8s.inspect



              4) Commands in microk8s differs prefix, i.e instead of
              - kubectl get all --all-namespaces you need to use microk8s.kubectl get all --all-namespaces (later you can use allias to chage it)



              5) You can create image via Dockerfile using microk8s.docker build . (don't forget to have Dockerfile and "." on the end of the command).



              You can always check Microk8s documentation






              share|improve this answer



























                0












                0








                0







                Unfortunately you did not provide microk8 version and your steps.



                I supposed that you used sudo snap install microk8s --classic command to install. Currently it will download v1.14.0.

                You can check your version using snap info microk8s



                Version 1.14.0 introduced changes in microk8s.daemon-docker and change it to microk8s.daemon-containerd. Due to this change microk8s cannot execute docker commands. Microk8s contains daemon-docker between versions 1.11 and 1.13.



                If you are used to use docker install microk8s v1.13 by sudo snap install microk8s --classic --channel=1.13/stable



                For future use:



                1) Install microk8s - sudo snap install microk8s --classic --channel=1.13/stable (if still want use docker)



                2) Make sure that microk8s is started - microk8s.start (you can stop it by microk8s.stop)



                3) Check what services are running by - microk8s.inspect



                4) Commands in microk8s differs prefix, i.e instead of
                - kubectl get all --all-namespaces you need to use microk8s.kubectl get all --all-namespaces (later you can use allias to chage it)



                5) You can create image via Dockerfile using microk8s.docker build . (don't forget to have Dockerfile and "." on the end of the command).



                You can always check Microk8s documentation






                share|improve this answer















                Unfortunately you did not provide microk8 version and your steps.



                I supposed that you used sudo snap install microk8s --classic command to install. Currently it will download v1.14.0.

                You can check your version using snap info microk8s



                Version 1.14.0 introduced changes in microk8s.daemon-docker and change it to microk8s.daemon-containerd. Due to this change microk8s cannot execute docker commands. Microk8s contains daemon-docker between versions 1.11 and 1.13.



                If you are used to use docker install microk8s v1.13 by sudo snap install microk8s --classic --channel=1.13/stable



                For future use:



                1) Install microk8s - sudo snap install microk8s --classic --channel=1.13/stable (if still want use docker)



                2) Make sure that microk8s is started - microk8s.start (you can stop it by microk8s.stop)



                3) Check what services are running by - microk8s.inspect



                4) Commands in microk8s differs prefix, i.e instead of
                - kubectl get all --all-namespaces you need to use microk8s.kubectl get all --all-namespaces (later you can use allias to chage it)



                5) You can create image via Dockerfile using microk8s.docker build . (don't forget to have Dockerfile and "." on the end of the command).



                You can always check Microk8s documentation







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 2 at 15:27

























                answered Apr 2 at 15:14









                PjoterSPjoterS

                735




                735





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55297278%2fhow-to-use-local-docker-images-with-microk8s%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현