Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Run docker service in Docker container

    App Packaging & Development
    5
    6
    353
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      roru2k20 last edited by

      Hello,
      I try to package code-server (VSCode) for Cloudron and I would like to combine all needfull things to develop a cloudron package into webbrowser.

      At the moment I develop all my packages on Windows with WSL (Ubuntu) into VSCode, but my wish is to develop into my web environment.

      I have read that a docker container must run in privileged mode. How does this work with Cloudron?

      this my supervisor.conf excerpt for docker

      ; docker
      [program:docker]
      command=/usr/bin/docker --config /app/data/docker
      priority=5
      autostart=true
      autorestart=true
      stdout_logfile=/dev/stdout
      stdout_logfile_maxbytes=0
      stderr_logfile=/dev/stderr
      stderr_logfile_maxbytes=0
      
      girish murgero 2 Replies Last reply Reply Quote 0
      • girish
        girish Staff @roru2k20 last edited by

        @roru2k20 So you want to run docker inside an app? This is not possible atm since docker-in-docker is not supported.

        R 1 Reply Last reply Reply Quote 0
        • robi
          robi last edited by

          It would be possible if you used Sysbox from Nestybox.

          Life of Advanced Technology

          1 Reply Last reply Reply Quote 0
          • R
            roru2k20 @girish last edited by

            @girish yes and no. My aim is not to run really a docker container into a docker container, but to test, verify and complete a cloudron package you need to run the dockerfile and this is only possible with installed docker or?

            The process to develop a Cloudron package is actually developing a dockerfile, some manifests and so on. After that you build the docker container and when it works, that you push it to hub.docker.com. I think this is the way of developing.

            I know I have ambitious ideas 😄

            fbartels 1 Reply Last reply Reply Quote 0
            • fbartels
              fbartels App Dev @roru2k20 last edited by

              @roru2k20 you could have a look how its done in the builder app. its source code is available at https://git.cloudron.io/cloudron/cloudron-build-service

              This uses the docker capability of exposing the local docker socket to the container. then you only need the Docker binaries in the app itself, but everything is executed on the host. This however also has the downside that you can practically take over the whole host of someone gets access to your app, which has unrestricted access to the socket.

              1 Reply Last reply Reply Quote 1
              • murgero
                murgero App Dev @roru2k20 last edited by

                @roru2k20 I have a package already that has code-server, would you like to get access to the repo?

                --
                https://urgero.org
                ~ Professional Nerd. Freelance Programmer. ~
                Matrix: @murgero:urgero.org

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB