Skip to content

Instantly share code, notes, and snippets.

@mattbell87
Last active August 3, 2020 07:50
Show Gist options
  • Select an option

  • Save mattbell87/655ee08644e6b6791a5fca7c9a2b57a7 to your computer and use it in GitHub Desktop.

Select an option

Save mattbell87/655ee08644e6b6791a5fca7c9a2b57a7 to your computer and use it in GitHub Desktop.
Remote development on Fedora with Docker and Code-Server

Remote development on Fedora with Docker and Code-Server

This guide assumes you have a working Fedora installation with SSH access.

Prepare

Disable CGroups V2 as Docker doesnt support that yet.

sudo dnf install grubby
sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"

Install GIT

sudo dnf install git

Install Code-Server

https://github.com/cdr/code-server

Follow instructions this command gives:

curl -fsSL https://code-server.dev/install.sh | sh

Change config to listen to 0.0.0.0:

nano ~/.config/code-server/config.yaml

Make code-server start with the system (because it's running under user)

sudo loginctl enable-linger USERNAME-HERE

Install Docker

https://docs.docker.com/engine/install/fedora/

Now log in to Code-Server and install the docker extension.

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