Skip to content

Instantly share code, notes, and snippets.

@BlazerYoo
Last active October 15, 2025 23:19
Show Gist options
  • Save BlazerYoo/4531ad5fc2cf87f40ce8b193b12c8ead to your computer and use it in GitHub Desktop.
Save BlazerYoo/4531ad5fc2cf87f40ce8b193b12c8ead to your computer and use it in GitHub Desktop.
chronos@localhost ~/Downloads $ sudo sh crouton -r xenial -t unity
Installing xenial-amd64 chroot to /usr/local/chroots/xenial
Downloading bootstrap files...
debootstrap error log:
[.[] | select((.extendedSupport // .support) > (now | strftime("%Y-%m-%d")) and (.codename | test($suite; "i")))] | isempty(.[]) | not error: strftime is not defined
[.[] | select((.extendedSupport // .support) > (now | strftime("%Y-%m-%d")) and (.codename | test($suite; "i")))] | isempty(.[]) | not error: test is not defined
[.[] | select((.extendedSupport // .support) > (now | strftime("%Y-%m-%d")) and (.codename | test($suite; "i")))] | isempty(.[]) | not 4 compile errors
Failed to run debootstrap.
@BlazerYoo
Copy link
Author

sudo apt-get update
sudo apt-get install ca-certificates curl gnupg

sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

echo
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

sudo docker run hello-world

dockerd

Step 1: Edit the GRUB configuration
You need to edit the GRUB file to add the kernel boot parameter.

Open the /etc/default/grub file with a text editor.
sh

sudo nano /etc/default/grub

Find the line that starts with GRUB_CMDLINE_LINUX_DEFAULT. It probably looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Add systemd.unified_cgroup_hierarchy=0 to the line, so it looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash systemd.unified_cgroup_hierarchy=0"

Save the file and exit the editor (in nano, press Ctrl+X, then Y, then Enter).

Step 2: Update GRUB
After editing the file, you must update the GRUB configuration to apply the change.
sh

sudo update-grub

Step 3: Reboot your system
Reboot your machine for the kernel parameter to take effect.
sh

sudo reboot

step 4: Verify Docker is working
After your system has restarted, log in and try running the hello-world container again.
sh

docker run hello-world

Use code with caution.

@BlazerYoo
Copy link
Author

vailable variants: us-alt-intl us-altgr-intl us-chr us-colemak us-dvorak-alt-intl us-dvorak-classic us-dvorak-intl us-dvorak-l us-dvorak-r us-dvorak us-dvp us-euro us
Select variant []:

@BlazerYoo
Copy link
Author

@BlazerYoo
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment