Comments (4)
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.
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.
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.
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)
- backspace key doesnt seem to work in the terminal with zsh
- Can you add ansible awx to docker container? HOT 2
- What is password for abc? HOT 3
- the WRK_HOST variable needs to be inserted in ara config at creation HOT 1
- MkDocs-MagicSpace Enhancement: Easier way to Include docs from other repositories HOT 1
- ttyd, mc, and htop fail to start in ide-workspace and terraform-ansible HOT 3
- sudo creds requested HOT 1
- Improve integration with desktop VS-Code
- Secure remote deployment works only for port range starting with 8020
- copying my local ssh into a running instance HOT 2
- Codeserver-Workspace error dockerfile
- Change localhost link to be IP of container HOT 3
- email verification step
- OSX port 8021 | ftp-proxy.plist HOT 2
- Workspace UI doesn't work due to mkdocs failing HOT 6
- Gitpodify so folks can run this remotely with 1 click HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alnoda-workspaces.