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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Packaging & Development
  3. Run docker service in Docker container

Run docker service in Docker container

Scheduled Pinned Locked Moved App Packaging & Development
6 Posts 5 Posters 1.3k Views 5 Watching
  • 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 Offline
    R Offline
    roru2k20
    wrote on last edited by
    #1

    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
    
    girishG murgeroM 2 Replies Last reply
    0
    • R roru2k20

      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
      
      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @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
      0
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #3

        It would be possible if you used Sysbox from Nestybox.

        Conscious tech

        1 Reply Last reply
        0
        • girishG girish

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

          R Offline
          R Offline
          roru2k20
          wrote on last edited by
          #4

          @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 😄

          fbartelsF 1 Reply Last reply
          0
          • R roru2k20

            @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 😄

            fbartelsF Offline
            fbartelsF Offline
            fbartels
            App Dev
            wrote on last edited by
            #5

            @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
            1
            • R roru2k20

              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
              
              murgeroM Offline
              murgeroM Offline
              murgero
              App Dev
              wrote on last edited by
              #6

              @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. ~

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search