Giter Club home page Giter Club logo

Comments (4)

andreagalle avatar andreagalle commented on May 29, 2024

Neither setting up the following directory:

Acquire::http::Proxy "http://yourproxyaddress:proxyport";

into a file within the directory here below, solves this issue.

/etc/apt/apt.conf.d/

from alnoda-workspaces.

andreagalle avatar andreagalle commented on May 29, 2024

I confirm it is the proxy, since I am getting:

10:37:41 with abc in ~p ➜ curl https://api.alnoda.org/api/v1/app/docker/24.0.4-isolate/meta/   
curl: (56) Received HTTP code 503 from proxy after CONNECT

that indicates the fetch at this line is failing. Tell me if you need me to add the -v opt.

While the same curl from outside the container (with proxy properly configured) gives the following supposedly correct output:

{"id": "docker", "name": "Docker", "description": "Install Docker in the workspace", "tags": ["docker"], "repository_url": "", "website": "", "image_url": null, "doc_url": "https://docs.docker.com/", "added_by": "fwubhiaz", "added_by_name": "bluxmit", "created_at": "2023-07-14T11:44:38.076Z", "updated_at": "2023-07-14T11:44:38.076Z", "version_id": 958, "version_code": "24-0-4-isolate", "version": "24.0.4-isolate", "install_script": "# Docker\r\n\r\nsudo apt-get update\r\nsudo apt-get install -y apt-transport-https ca-certificates gnupg lsb-release \r\ncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \r\necho \"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable\" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \r\nsudo apt-get update \r\nsudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin\r\n\r\n# Docker rootless\r\nsudo apt-get update  \r\nsudo apt-get install -y iproute2\r\n\r\nsudo sh -eux <<EOF\r\n# Install newuidmap & newgidmap binaries\r\napt-get install -y uidmap\r\n# Load ip_tables module\r\nmodprobe ip_tables\r\nEOF\r\n\r\n/usr/bin/dockerd-rootless-setuptool.sh install --skip-iptables\r\n\r\nwrk env XDG_RUNTIME_DIR \"/home/abc/.docker/run\"\r\nwrk env DOCKER_HOST \"unix:////home/abc/.docker/run/docker.sock\"\r\nsudo usermod -aG docker abc  \r\nwrk alias docker \"docker -H unix:///home/abc/.docker/run/docker.sock\"\r\n\r\n# Docker compose\r\ncd /tmp\r\nsudo curl -L \"https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)\"  -o /usr/local/bin/docker-compose\r\nsudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose\r\nsudo chmod +x /usr/bin/docker-compose", "start_script": "rm /home/abc/.docker/run/docker.pid || true; export XDG_RUNTIME_DIR=/home/abc/.docker/run; PATH=/usr/bin:/sbin:/usr/sbin:$PATH dockerd-rootless.sh  --iptables=false", "app_port": null, "ui_path": "", "remarks": "!!! INFO !!!\r\nThis is a Docker [+ Compose] which is isolated from the host. Workspace will run its own rootless docker daemon. \r\n\r\nCompared to the Docker-host version of Alnoda Docker app, stadalone isolated docker daemon will require additional resources.\r\n\r\nIf you want to connect to the host Docker daemon from the workspace instead, install \"host\" version of Alnoda Docker app", "version_created_at": "2023-08-16T11:51:42.942Z", "version_updated_at": "2023-08-16T11:51:42.942Z", "version_added_by": "fwubhiaz"}

from alnoda-workspaces.

andreagalle avatar andreagalle commented on May 29, 2024

It finally worked, once I set up the http_proxy and https_proxy environment variables (switching to another proxy).

10:41:08 with abc in ~p ➜ export http_proxy=http://username:password@yourproxyaddress:proxyport
10:41:26 with abc in ~p ➜ export https_proxy=http://username:password@yourproxyaddress:proxyport
10:41:30 with abc in ~p ➜ wrk install docker==24.0.4-isolate                                             
✨ starting...
⚠️ Please DO NOT close this terminal window untill app is fully installed!
➡️ checking workspace compatibility...
➡️ checking app compatibility...
➡️ executing installation script...
✔️ app installed
➡️ setting startup configuration...
-------------------------------------------------------------
- ⚠️ application will start after workspace is restarted ⚠️  -
---       restart workspace with    'wrk kill'             ---
-------------------------------------------------------------
➡️ adding workspace tags...
❗ Could not update workspace app history at alnoda.org: Not authenticated at alnoda.org
---- ⚠️ RESTART TERMINAL REQUIRED TO APPLY CHANGES ----
✍️ If app is not working try restarting terminal window or entire workspace
🚀 done
R E S T A R T    T E R M I N A L    N O W   (CTRL+D) !!!!!!!!
***********************************************
!!! INFO !!!
This is a Docker [+ Compose] which is isolated from the host. Workspace will run its own rootless docker daemon. 

Compared to the Docker-host version of Alnoda Docker app, stadalone isolated docker daemon will require additional resources.

If you want to connect to the host Docker daemon from the workspace instead, install "host" version of Alnoda Docker app
***********************************************
10:42:06 with abc in ~p took 33s ➜ 

Just to recap: setting up HTTP_PROXY and HTTPS_PROXY was not resolving as well as setting up the proxy under the following path /etc/apt/apt.conf.d/

from alnoda-workspaces.

andreagalle avatar andreagalle commented on May 29, 2024

Unfortunately even though the installation was complete, no docker was installed within the system. I tried out the other docker versions too, without success. Running single commands from your # Install script guide, I get the following error:

14:32:19 with abc in ~p took 1m 12s ➜ sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker-ce' has no installation candidate
E: Unable to locate package docker-ce-cli
E: Unable to locate package containerd.io
E: Couldn't find any package by glob 'containerd.io'
E: Couldn't find any package by regex 'containerd.io'
E: Unable to locate package docker-compose-plugin

from alnoda-workspaces.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.