<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Minkyu Shim on Medium]]></title>
        <description><![CDATA[Stories by Minkyu Shim on Medium]]></description>
        <link>https://medium.com/@heartonbit?source=rss-c6e638bf7de6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gbu8D2KhSEzQjN65lw_5yQ.png</url>
            <title>Stories by Minkyu Shim on Medium</title>
            <link>https://medium.com/@heartonbit?source=rss-c6e638bf7de6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 13:46:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@heartonbit/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[You can’t install Docker on Linux Mint using a convenient script.]]></title>
            <link>https://medium.com/@heartonbit/you-cant-install-docker-on-linux-mint-using-a-convenient-script-8929bc3118b5?source=rss-c6e638bf7de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8929bc3118b5</guid>
            <category><![CDATA[linux-mint]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Minkyu Shim]]></dc:creator>
            <pubDate>Mon, 20 Jan 2025 18:21:36 GMT</pubDate>
            <atom:updated>2025-01-21T07:55:06.683Z</atom:updated>
            <content:encoded><![CDATA[<p>You can’t install Docker on Linux Mint using <a href="https://docs.docker.com/engine/install/debian/#install-using-the-convenience-script">a convenient script</a> from official document. It is because the script incorrectly handles the distro and version of Linux mint.</p><p>In my case, where I’m using Linux mint 22 wilma, the script think it’s `debian` `wilma` where it is supposed to be `ubuntu` `noble`.</p><p>So, I fixed the script and share it from github gist, so you can download the script as a file from <a href="https://gist.github.com/minkyushim/87fa0f477099e5bfd14e25a4f34257c2">here</a>. And also I share the full script code below.</p><p>Hope this helps.</p><pre>#!/bin/sh<br>set -e<br># Docker Engine for Linux installation script.<br>#<br># This script is intended as a convenient way to configure docker&#39;s package<br># repositories and to install Docker Engine, This script is not recommended<br># for production environments. Before running this script, make yourself familiar<br># with potential risks and limitations, and refer to the installation manual<br># at https://docs.docker.com/engine/install/ for alternative installation methods.<br>#<br># The script:<br>#<br># - Requires `root` or `sudo` privileges to run.<br># - Attempts to detect your Linux distribution and version and configure your<br>#   package management system for you.<br># - Doesn&#39;t allow you to customize most installation parameters.<br># - Installs dependencies and recommendations without asking for confirmation.<br># - Installs the latest stable release (by default) of Docker CLI, Docker Engine,<br>#   Docker Buildx, Docker Compose, containerd, and runc. When using this script<br>#   to provision a machine, this may result in unexpected major version upgrades<br>#   of these packages. Always test upgrades in a test environment before<br>#   deploying to your production systems.<br># - Isn&#39;t designed to upgrade an existing Docker installation. When using the<br>#   script to update an existing installation, dependencies may not be updated<br>#   to the expected version, resulting in outdated versions.<br>#<br># Source code is available at https://github.com/docker/docker-install/<br>#<br># Usage<br># ==============================================================================<br>#<br># To install the latest stable versions of Docker CLI, Docker Engine, and their<br># dependencies:<br>#<br># 1. download the script<br>#<br>#   $ curl -fsSL https://get.docker.com -o install-docker.sh<br>#<br># 2. verify the script&#39;s content<br>#<br>#   $ cat install-docker.sh<br>#<br># 3. run the script with --dry-run to verify the steps it executes<br>#<br>#   $ sh install-docker.sh --dry-run<br>#<br># 4. run the script either as root, or using sudo to perform the installation.<br>#<br>#   $ sudo sh install-docker.sh<br>#<br># Command-line options<br># ==============================================================================<br>#<br># --version &lt;VERSION&gt;<br># Use the --version option to install a specific version, for example:<br>#<br>#   $ sudo sh install-docker.sh --version 23.0<br>#<br># --channel &lt;stable|test&gt;<br>#<br># Use the --channel option to install from an alternative installation channel.<br># The following example installs the latest versions from the &quot;test&quot; channel,<br># which includes pre-releases (alpha, beta, rc):<br>#<br>#   $ sudo sh install-docker.sh --channel test<br>#<br># Alternatively, use the script at https://test.docker.com, which uses the test<br># channel as default.<br>#<br># --mirror &lt;Aliyun|AzureChinaCloud&gt;<br>#<br># Use the --mirror option to install from a mirror supported by this script.<br># Available mirrors are &quot;Aliyun&quot; (https://mirrors.aliyun.com/docker-ce), and<br># &quot;AzureChinaCloud&quot; (https://mirror.azure.cn/docker-ce), for example:<br>#<br>#   $ sudo sh install-docker.sh --mirror AzureChinaCloud<br>#<br># ==============================================================================<br><br><br># Git commit from https://github.com/docker/docker-install when<br># the script was uploaded (Should only be modified by upload job):<br>SCRIPT_COMMIT_SHA=&quot;4c94a56999e10efcf48c5b8e3f6afea464f9108e&quot;<br><br># strip &quot;v&quot; prefix if present<br>VERSION=&quot;${VERSION#v}&quot;<br><br># The channel to install from:<br>#   * stable<br>#   * test<br>DEFAULT_CHANNEL_VALUE=&quot;stable&quot;<br>if [ -z &quot;$CHANNEL&quot; ]; then<br> CHANNEL=$DEFAULT_CHANNEL_VALUE<br>fi<br><br>DEFAULT_DOWNLOAD_URL=&quot;https://download.docker.com&quot;<br>if [ -z &quot;$DOWNLOAD_URL&quot; ]; then<br> DOWNLOAD_URL=$DEFAULT_DOWNLOAD_URL<br>fi<br><br>DEFAULT_REPO_FILE=&quot;docker-ce.repo&quot;<br>if [ -z &quot;$REPO_FILE&quot; ]; then<br> REPO_FILE=&quot;$DEFAULT_REPO_FILE&quot;<br>fi<br><br>mirror=&#39;&#39;<br>DRY_RUN=${DRY_RUN:-}<br>while [ $# -gt 0 ]; do<br> case &quot;$1&quot; in<br>  --channel)<br>   CHANNEL=&quot;$2&quot;<br>   shift<br>   ;;<br>  --dry-run)<br>   DRY_RUN=1<br>   ;;<br>  --mirror)<br>   mirror=&quot;$2&quot;<br>   shift<br>   ;;<br>  --version)<br>   VERSION=&quot;${2#v}&quot;<br>   shift<br>   ;;<br>  --*)<br>   echo &quot;Illegal option $1&quot;<br>   ;;<br> esac<br> shift $(( $# &gt; 0 ? 1 : 0 ))<br>done<br><br>case &quot;$mirror&quot; in<br> Aliyun)<br>  DOWNLOAD_URL=&quot;https://mirrors.aliyun.com/docker-ce&quot;<br>  ;;<br> AzureChinaCloud)<br>  DOWNLOAD_URL=&quot;https://mirror.azure.cn/docker-ce&quot;<br>  ;;<br> &quot;&quot;)<br>  ;;<br> *)<br>  &gt;&amp;2 echo &quot;unknown mirror &#39;$mirror&#39;: use either &#39;Aliyun&#39;, or &#39;AzureChinaCloud&#39;.&quot;<br>  exit 1<br>  ;;<br>esac<br><br>case &quot;$CHANNEL&quot; in<br> stable|test)<br>  ;;<br> *)<br>  &gt;&amp;2 echo &quot;unknown CHANNEL &#39;$CHANNEL&#39;: use either stable or test.&quot;<br>  exit 1<br>  ;;<br>esac<br><br>command_exists() {<br> command -v &quot;$@&quot; &gt; /dev/null 2&gt;&amp;1<br>}<br><br># version_gte checks if the version specified in $VERSION is at least the given<br># SemVer (Maj.Minor[.Patch]), or CalVer (YY.MM) version.It returns 0 (success)<br># if $VERSION is either unset (=latest) or newer or equal than the specified<br># version, or returns 1 (fail) otherwise.<br>#<br># examples:<br>#<br># VERSION=23.0<br># version_gte 23.0  // 0 (success)<br># version_gte 20.10 // 0 (success)<br># version_gte 19.03 // 0 (success)<br># version_gte 26.1  // 1 (fail)<br>version_gte() {<br> if [ -z &quot;$VERSION&quot; ]; then<br>   return 0<br> fi<br> version_compare &quot;$VERSION&quot; &quot;$1&quot;<br>}<br><br># version_compare compares two version strings (either SemVer (Major.Minor.Path),<br># or CalVer (YY.MM) version strings. It returns 0 (success) if version A is newer<br># or equal than version B, or 1 (fail) otherwise. Patch releases and pre-release<br># (-alpha/-beta) are not taken into account<br>#<br># examples:<br>#<br># version_compare 23.0.0 20.10 // 0 (success)<br># version_compare 23.0 20.10   // 0 (success)<br># version_compare 20.10 19.03  // 0 (success)<br># version_compare 20.10 20.10  // 0 (success)<br># version_compare 19.03 20.10  // 1 (fail)<br>version_compare() (<br> set +x<br><br> yy_a=&quot;$(echo &quot;$1&quot; | cut -d&#39;.&#39; -f1)&quot;<br> yy_b=&quot;$(echo &quot;$2&quot; | cut -d&#39;.&#39; -f1)&quot;<br> if [ &quot;$yy_a&quot; -lt &quot;$yy_b&quot; ]; then<br>  return 1<br> fi<br> if [ &quot;$yy_a&quot; -gt &quot;$yy_b&quot; ]; then<br>  return 0<br> fi<br> mm_a=&quot;$(echo &quot;$1&quot; | cut -d&#39;.&#39; -f2)&quot;<br> mm_b=&quot;$(echo &quot;$2&quot; | cut -d&#39;.&#39; -f2)&quot;<br><br> # trim leading zeros to accommodate CalVer<br> mm_a=&quot;${mm_a#0}&quot;<br> mm_b=&quot;${mm_b#0}&quot;<br><br> if [ &quot;${mm_a:-0}&quot; -lt &quot;${mm_b:-0}&quot; ]; then<br>  return 1<br> fi<br><br> return 0<br>)<br><br>is_dry_run() {<br> if [ -z &quot;$DRY_RUN&quot; ]; then<br>  return 1<br> else<br>  return 0<br> fi<br>}<br><br>is_wsl() {<br> case &quot;$(uname -r)&quot; in<br> *microsoft* ) true ;; # WSL 2<br> *Microsoft* ) true ;; # WSL 1<br> * ) false;;<br> esac<br>}<br><br>is_darwin() {<br> case &quot;$(uname -s)&quot; in<br> *darwin* ) true ;;<br> *Darwin* ) true ;;<br> * ) false;;<br> esac<br>}<br><br>deprecation_notice() {<br> distro=$1<br> distro_version=$2<br> echo<br> printf &quot;\033[91;1mDEPRECATION WARNING\033[0m\n&quot;<br> printf &quot;    This Linux distribution (\033[1m%s %s\033[0m) reached end-of-life and is no longer supported by this script.\n&quot; &quot;$distro&quot; &quot;$distro_version&quot;<br> echo   &quot;    No updates or security fixes will be released for this distribution, and users are recommended&quot;<br> echo   &quot;    to upgrade to a currently maintained version of $distro.&quot;<br> echo<br> printf   &quot;Press \033[1mCtrl+C\033[0m now to abort this script, or wait for the installation to continue.&quot;<br> echo<br> sleep 10<br>}<br><br>get_distribution() {<br> lsb_dist=&quot;&quot;<br> # Every system that we officially support has /etc/os-release<br> if [ -r /etc/os-release ]; then<br>  lsb_dist=&quot;$(. /etc/os-release &amp;&amp; echo &quot;$ID&quot;)&quot;<br> fi<br> # Returning an empty string here should be alright since the<br> # case statements don&#39;t act unless you provide an actual value<br> echo &quot;$lsb_dist&quot;<br>}<br><br>echo_docker_as_nonroot() {<br> if is_dry_run; then<br>  return<br> fi<br> if command_exists docker &amp;&amp; [ -e /var/run/docker.sock ]; then<br>  (<br>   set -x<br>   $sh_c &#39;docker version&#39;<br>  ) || true<br> fi<br><br> # intentionally mixed spaces and tabs here -- tabs are stripped by &quot;&lt;&lt;-EOF&quot;, spaces are kept in the output<br> echo<br> echo &quot;================================================================================&quot;<br> echo<br> if version_gte &quot;20.10&quot;; then<br>  echo &quot;To run Docker as a non-privileged user, consider setting up the&quot;<br>  echo &quot;Docker daemon in rootless mode for your user:&quot;<br>  echo<br>  echo &quot;    dockerd-rootless-setuptool.sh install&quot;<br>  echo<br>  echo &quot;Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.&quot;<br>  echo<br> fi<br> echo<br> echo &quot;To run the Docker daemon as a fully privileged service, but granting non-root&quot;<br> echo &quot;users access, refer to https://docs.docker.com/go/daemon-access/&quot;<br> echo<br> echo &quot;WARNING: Access to the remote API on a privileged Docker daemon is equivalent&quot;<br> echo &quot;         to root access on the host. Refer to the &#39;Docker daemon attack surface&#39;&quot;<br> echo &quot;         documentation for details: https://docs.docker.com/go/attack-surface/&quot;<br> echo<br> echo &quot;================================================================================&quot;<br> echo<br>}<br><br># Check if this is a forked Linux distro<br>check_forked() {<br> # Check for lsb_release command existence, it usually exists in forked distros<br> if command_exists lsb_release; then<br>  # Check if the `-u` option is supported<br>  set +e<br>  lsb_release -a -u &gt; /dev/null 2&gt;&amp;1<br>  lsb_release_exit_code=$?<br>  set -e<br><br>  # Check if the command has exited successfully, it means we&#39;re in a forked distro<br>  if [ &quot;$lsb_release_exit_code&quot; = &quot;0&quot; ]; then<br>   # Print info about current distro<br>   cat &lt;&lt;-EOF<br>   You&#39;re using &#39;$lsb_dist&#39; version &#39;$dist_version&#39;.<br>   EOF<br><br>   # Get the upstream release info<br>   lsb_dist=$(lsb_release -a -u 2&gt;&amp;1 | tr &#39;[:upper:]&#39; &#39;[:lower:]&#39; | grep -E &#39;id&#39; | cut -d &#39;:&#39; -f 2 | tr -d &#39;[:space:]&#39;)<br>   dist_version=$(lsb_release -a -u 2&gt;&amp;1 | tr &#39;[:upper:]&#39; &#39;[:lower:]&#39; | grep -E &#39;codename&#39; | cut -d &#39;:&#39; -f 2 | tr -d &#39;[:space:]&#39;)<br><br>   # Print info about upstream distro<br>   cat &lt;&lt;-EOF<br>   Upstream release is &#39;$lsb_dist&#39; version &#39;$dist_version&#39;.<br>   EOF<br>  else<br>   if [ -r /etc/debian_version ] &amp;&amp; [ &quot;$lsb_dist&quot; != &quot;ubuntu&quot; ] &amp;&amp; [ &quot;$lsb_dist&quot; != &quot;raspbian&quot; ]; then<br>    if [ &quot;$lsb_dist&quot; = &quot;osmc&quot; ]; then<br>     # OSMC runs Raspbian<br>     lsb_dist=raspbian<br>    elif [ -f /etc/linuxmint/info ]; then<br>     # We&#39;re actually Linux Mint<br>     lsb_dist=&quot;ubuntu&quot;<br>     if [ -r /etc/os-release ]; then<br>      dist_version=&quot;$(. /etc/os-release &amp;&amp; echo &quot;$UBUNTU_CODENAME&quot;)&quot;<br>     fi<br>    else<br>     # We&#39;re Debian and don&#39;t even know it!<br>     lsb_dist=debian<br>     dist_version=&quot;$(sed &#39;s/\/.*//&#39; /etc/debian_version | sed &#39;s/\..*//&#39;)&quot;<br>     case &quot;$dist_version&quot; in<br>      12)<br>       dist_version=&quot;bookworm&quot;<br>      ;;<br>      11)<br>       dist_version=&quot;bullseye&quot;<br>      ;;<br>      10)<br>       dist_version=&quot;buster&quot;<br>      ;;<br>      9)<br>       dist_version=&quot;stretch&quot;<br>      ;;<br>      8)<br>       dist_version=&quot;jessie&quot;<br>      ;;<br>     esac<br>    fi<br>   fi<br>  fi<br> fi<br>}<br><br>do_install() {<br> echo &quot;# Executing docker install script, commit: $SCRIPT_COMMIT_SHA&quot;<br><br> if command_exists docker; then<br>  cat &gt;&amp;2 &lt;&lt;-&#39;EOF&#39;<br>   Warning: the &quot;docker&quot; command appears to already exist on this system.<br><br>   If you already have Docker installed, this script can cause trouble, which is<br>   why we&#39;re displaying this warning and provide the opportunity to cancel the<br>   installation.<br><br>   If you installed the current Docker package using this script and are using it<br>   again to update Docker, you can ignore this message, but be aware that the<br>   script resets any custom changes in the deb and rpm repo configuration<br>   files to match the parameters passed to the script.<br><br>   You may press Ctrl+C now to abort this script.<br>  EOF<br>  ( set -x; sleep 20 )<br> fi<br><br> user=&quot;$(id -un 2&gt;/dev/null || true)&quot;<br><br> sh_c=&#39;sh -c&#39;<br> if [ &quot;$user&quot; != &#39;root&#39; ]; then<br>  if command_exists sudo; then<br>   sh_c=&#39;sudo -E sh -c&#39;<br>  elif command_exists su; then<br>   sh_c=&#39;su -c&#39;<br>  else<br>   cat &gt;&amp;2 &lt;&lt;-&#39;EOF&#39;<br>   Error: this installer needs the ability to run commands as root.<br>   We are unable to find either &quot;sudo&quot; or &quot;su&quot; available to make this happen.<br>   EOF<br>   exit 1<br>  fi<br> fi<br><br> if is_dry_run; then<br>  sh_c=&quot;echo&quot;<br> fi<br><br> # perform some very rudimentary platform detection<br> lsb_dist=$( get_distribution )<br> lsb_dist=&quot;$(echo &quot;$lsb_dist&quot; | tr &#39;[:upper:]&#39; &#39;[:lower:]&#39;)&quot;<br><br> if is_wsl; then<br>  echo<br>  echo &quot;WSL DETECTED: We recommend using Docker Desktop for Windows.&quot;<br>  echo &quot;Please get Docker Desktop from https://www.docker.com/products/docker-desktop/&quot;<br>  echo<br>  cat &gt;&amp;2 &lt;&lt;-&#39;EOF&#39;<br><br>   You may press Ctrl+C now to abort this script.<br>  EOF<br>  ( set -x; sleep 20 )<br> fi<br><br> case &quot;$lsb_dist&quot; in<br><br>  ubuntu)<br>   if command_exists lsb_release; then<br>    dist_version=&quot;$(lsb_release --codename | cut -f2)&quot;<br>   fi<br>   if [ -z &quot;$dist_version&quot; ] &amp;&amp; [ -r /etc/lsb-release ]; then<br>    dist_version=&quot;$(. /etc/lsb-release &amp;&amp; echo &quot;$DISTRIB_CODENAME&quot;)&quot;<br>   fi<br>  ;;<br><br>  debian|raspbian)<br>   dist_version=&quot;$(sed &#39;s/\/.*//&#39; /etc/debian_version | sed &#39;s/\..*//&#39;)&quot;<br>   case &quot;$dist_version&quot; in<br>    12)<br>     dist_version=&quot;bookworm&quot;<br>    ;;<br>    11)<br>     dist_version=&quot;bullseye&quot;<br>    ;;<br>    10)<br>     dist_version=&quot;buster&quot;<br>    ;;<br>    9)<br>     dist_version=&quot;stretch&quot;<br>    ;;<br>    8)<br>     dist_version=&quot;jessie&quot;<br>    ;;<br>   esac<br>  ;;<br><br>  centos|rhel)<br>   if [ -z &quot;$dist_version&quot; ] &amp;&amp; [ -r /etc/os-release ]; then<br>    dist_version=&quot;$(. /etc/os-release &amp;&amp; echo &quot;$VERSION_ID&quot;)&quot;<br>   fi<br>  ;;<br><br>  *)<br>   if command_exists lsb_release; then<br>    dist_version=&quot;$(lsb_release --release | cut -f2)&quot;<br>   fi<br>   if [ -z &quot;$dist_version&quot; ] &amp;&amp; [ -r /etc/os-release ]; then<br>    dist_version=&quot;$(. /etc/os-release &amp;&amp; echo &quot;$VERSION_ID&quot;)&quot;<br>   fi<br>  ;;<br><br> esac<br><br> # Check if this is a forked Linux distro<br> check_forked<br><br> # Print deprecation warnings for distro versions that recently reached EOL,<br> # but may still be commonly used (especially LTS versions).<br> case &quot;$lsb_dist.$dist_version&quot; in<br>  centos.8|centos.7|rhel.7)<br>   deprecation_notice &quot;$lsb_dist&quot; &quot;$dist_version&quot;<br>   ;;<br>  debian.buster|debian.stretch|debian.jessie)<br>   deprecation_notice &quot;$lsb_dist&quot; &quot;$dist_version&quot;<br>   ;;<br>  raspbian.buster|raspbian.stretch|raspbian.jessie)<br>   deprecation_notice &quot;$lsb_dist&quot; &quot;$dist_version&quot;<br>   ;;<br>  ubuntu.bionic|ubuntu.xenial|ubuntu.trusty)<br>   deprecation_notice &quot;$lsb_dist&quot; &quot;$dist_version&quot;<br>   ;;<br>  ubuntu.mantic|ubuntu.lunar|ubuntu.kinetic|ubuntu.impish|ubuntu.hirsute|ubuntu.groovy|ubuntu.eoan|ubuntu.disco|ubuntu.cosmic)<br>   deprecation_notice &quot;$lsb_dist&quot; &quot;$dist_version&quot;<br>   ;;<br>  fedora.*)<br>   if [ &quot;$dist_version&quot; -lt 40 ]; then<br>    deprecation_notice &quot;$lsb_dist&quot; &quot;$dist_version&quot;<br>   fi<br>   ;;<br> esac<br><br> # Run setup for each distro accordingly<br> case &quot;$lsb_dist&quot; in<br>  ubuntu|debian|raspbian)<br>   pre_reqs=&quot;ca-certificates curl&quot;<br>   apt_repo=&quot;deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] $DOWNLOAD_URL/linux/$lsb_dist $dist_version $CHANNEL&quot;<br>   (<br>    if ! is_dry_run; then<br>     set -x<br>    fi<br>    $sh_c &#39;apt-get -qq update &gt;/dev/null&#39;<br>    $sh_c &quot;DEBIAN_FRONTEND=noninteractive apt-get -y -qq install $pre_reqs &gt;/dev/null&quot;<br>    $sh_c &#39;install -m 0755 -d /etc/apt/keyrings&#39;<br>    $sh_c &quot;curl -fsSL \&quot;$DOWNLOAD_URL/linux/$lsb_dist/gpg\&quot; -o /etc/apt/keyrings/docker.asc&quot;<br>    $sh_c &quot;chmod a+r /etc/apt/keyrings/docker.asc&quot;<br>    $sh_c &quot;echo \&quot;$apt_repo\&quot; &gt; /etc/apt/sources.list.d/docker.list&quot;<br>    $sh_c &#39;apt-get -qq update &gt;/dev/null&#39;<br>   )<br>   pkg_version=&quot;&quot;<br>   if [ -n &quot;$VERSION&quot; ]; then<br>    if is_dry_run; then<br>     echo &quot;# WARNING: VERSION pinning is not supported in DRY_RUN&quot;<br>    else<br>     # Will work for incomplete versions IE (17.12), but may not actually grab the &quot;latest&quot; if in the test channel<br>     pkg_pattern=&quot;$(echo &quot;$VERSION&quot; | sed &#39;s/-ce-/~ce~.*/g&#39; | sed &#39;s/-/.*/g&#39;)&quot;<br>     search_command=&quot;apt-cache madison docker-ce | grep &#39;$pkg_pattern&#39; | head -1 | awk &#39;{\$1=\$1};1&#39; | cut -d&#39; &#39; -f 3&quot;<br>     pkg_version=&quot;$($sh_c &quot;$search_command&quot;)&quot;<br>     echo &quot;INFO: Searching repository for VERSION &#39;$VERSION&#39;&quot;<br>     echo &quot;INFO: $search_command&quot;<br>     if [ -z &quot;$pkg_version&quot; ]; then<br>      echo<br>      echo &quot;ERROR: &#39;$VERSION&#39; not found amongst apt-cache madison results&quot;<br>      echo<br>      exit 1<br>     fi<br>     if version_gte &quot;18.09&quot;; then<br>       search_command=&quot;apt-cache madison docker-ce-cli | grep &#39;$pkg_pattern&#39; | head -1 | awk &#39;{\$1=\$1};1&#39; | cut -d&#39; &#39; -f 3&quot;<br>       echo &quot;INFO: $search_command&quot;<br>       cli_pkg_version=&quot;=$($sh_c &quot;$search_command&quot;)&quot;<br>     fi<br>     pkg_version=&quot;=$pkg_version&quot;<br>    fi<br>   fi<br>   (<br>    pkgs=&quot;docker-ce${pkg_version%=}&quot;<br>    if version_gte &quot;18.09&quot;; then<br>      # older versions didn&#39;t ship the cli and containerd as separate packages<br>      pkgs=&quot;$pkgs docker-ce-cli${cli_pkg_version%=} containerd.io&quot;<br>    fi<br>    if version_gte &quot;20.10&quot;; then<br>      pkgs=&quot;$pkgs docker-compose-plugin docker-ce-rootless-extras$pkg_version&quot;<br>    fi<br>    if version_gte &quot;23.0&quot;; then<br>      pkgs=&quot;$pkgs docker-buildx-plugin&quot;<br>    fi<br>    if ! is_dry_run; then<br>     set -x<br>    fi<br>    $sh_c &quot;DEBIAN_FRONTEND=noninteractive apt-get -y -qq install $pkgs &gt;/dev/null&quot;<br>   )<br>   echo_docker_as_nonroot<br>   exit 0<br>   ;;<br>  centos|fedora|rhel)<br>   repo_file_url=&quot;$DOWNLOAD_URL/linux/$lsb_dist/$REPO_FILE&quot;<br>   (<br>    if ! is_dry_run; then<br>     set -x<br>    fi<br>    if command_exists dnf5; then<br>     $sh_c &quot;dnf -y -q --setopt=install_weak_deps=False install dnf-plugins-core&quot;<br>     $sh_c &quot;dnf5 config-manager addrepo --overwrite --save-filename=docker-ce.repo --from-repofile=&#39;$repo_file_url&#39;&quot;<br><br>     if [ &quot;$CHANNEL&quot; != &quot;stable&quot; ]; then<br>      $sh_c &quot;dnf5 config-manager setopt \&quot;docker-ce-*.enabled=0\&quot;&quot;<br>      $sh_c &quot;dnf5 config-manager setopt \&quot;docker-ce-$CHANNEL.enabled=1\&quot;&quot;<br>     fi<br>     $sh_c &quot;dnf makecache&quot;<br>    elif command_exists dnf; then<br>     $sh_c &quot;dnf -y -q --setopt=install_weak_deps=False install dnf-plugins-core&quot;<br>     $sh_c &quot;rm -f /etc/yum.repos.d/docker-ce.repo  /etc/yum.repos.d/docker-ce-staging.repo&quot;<br>     $sh_c &quot;dnf config-manager --add-repo $repo_file_url&quot;<br><br>     if [ &quot;$CHANNEL&quot; != &quot;stable&quot; ]; then<br>      $sh_c &quot;dnf config-manager --set-disabled \&quot;docker-ce-*\&quot;&quot;<br>      $sh_c &quot;dnf config-manager --set-enabled \&quot;docker-ce-$CHANNEL\&quot;&quot;<br>     fi<br>     $sh_c &quot;dnf makecache&quot;<br>    else<br>     $sh_c &quot;yum -y -q install yum-utils&quot;<br>     $sh_c &quot;rm -f /etc/yum.repos.d/docker-ce.repo  /etc/yum.repos.d/docker-ce-staging.repo&quot;<br>     $sh_c &quot;yum-config-manager --add-repo $repo_file_url&quot;<br><br>     if [ &quot;$CHANNEL&quot; != &quot;stable&quot; ]; then<br>      $sh_c &quot;yum-config-manager --disable \&quot;docker-ce-*\&quot;&quot;<br>      $sh_c &quot;yum-config-manager --enable \&quot;docker-ce-$CHANNEL\&quot;&quot;<br>     fi<br>     $sh_c &quot;yum makecache&quot;<br>    fi<br>   )<br>   pkg_version=&quot;&quot;<br>   if command_exists dnf; then<br>    pkg_manager=&quot;dnf&quot;<br>    pkg_manager_flags=&quot;-y -q --best&quot;<br>   else<br>    pkg_manager=&quot;yum&quot;<br>    pkg_manager_flags=&quot;-y -q&quot;<br>   fi<br>   if [ -n &quot;$VERSION&quot; ]; then<br>    if is_dry_run; then<br>     echo &quot;# WARNING: VERSION pinning is not supported in DRY_RUN&quot;<br>    else<br>     if [ &quot;$lsb_dist&quot; = &quot;fedora&quot; ]; then<br>      pkg_suffix=&quot;fc$dist_version&quot;<br>     else<br>      pkg_suffix=&quot;el&quot;<br>     fi<br>     pkg_pattern=&quot;$(echo &quot;$VERSION&quot; | sed &#39;s/-ce-/\\\\.ce.*/g&#39; | sed &#39;s/-/.*/g&#39;).*$pkg_suffix&quot;<br>     search_command=&quot;$pkg_manager list --showduplicates docker-ce | grep &#39;$pkg_pattern&#39; | tail -1 | awk &#39;{print \$2}&#39;&quot;<br>     pkg_version=&quot;$($sh_c &quot;$search_command&quot;)&quot;<br>     echo &quot;INFO: Searching repository for VERSION &#39;$VERSION&#39;&quot;<br>     echo &quot;INFO: $search_command&quot;<br>     if [ -z &quot;$pkg_version&quot; ]; then<br>      echo<br>      echo &quot;ERROR: &#39;$VERSION&#39; not found amongst $pkg_manager list results&quot;<br>      echo<br>      exit 1<br>     fi<br>     if version_gte &quot;18.09&quot;; then<br>      # older versions don&#39;t support a cli package<br>      search_command=&quot;$pkg_manager list --showduplicates docker-ce-cli | grep &#39;$pkg_pattern&#39; | tail -1 | awk &#39;{print \$2}&#39;&quot;<br>      cli_pkg_version=&quot;$($sh_c &quot;$search_command&quot; | cut -d&#39;:&#39; -f 2)&quot;<br>     fi<br>     # Cut out the epoch and prefix with a &#39;-&#39;<br>     pkg_version=&quot;-$(echo &quot;$pkg_version&quot; | cut -d&#39;:&#39; -f 2)&quot;<br>    fi<br>   fi<br>   (<br>    pkgs=&quot;docker-ce$pkg_version&quot;<br>    if version_gte &quot;18.09&quot;; then<br>     # older versions didn&#39;t ship the cli and containerd as separate packages<br>     if [ -n &quot;$cli_pkg_version&quot; ]; then<br>      pkgs=&quot;$pkgs docker-ce-cli-$cli_pkg_version containerd.io&quot;<br>     else<br>      pkgs=&quot;$pkgs docker-ce-cli containerd.io&quot;<br>     fi<br>    fi<br>    if version_gte &quot;20.10&quot;; then<br>     pkgs=&quot;$pkgs docker-compose-plugin docker-ce-rootless-extras$pkg_version&quot;<br>    fi<br>    if version_gte &quot;23.0&quot;; then<br>      pkgs=&quot;$pkgs docker-buildx-plugin&quot;<br>    fi<br>    if ! is_dry_run; then<br>     set -x<br>    fi<br>    $sh_c &quot;$pkg_manager $pkg_manager_flags install $pkgs&quot;<br>   )<br>   echo_docker_as_nonroot<br>   exit 0<br>   ;;<br>  sles)<br>   if [ &quot;$(uname -m)&quot; != &quot;s390x&quot; ]; then<br>    echo &quot;Packages for SLES are currently only available for s390x&quot;<br>    exit 1<br>   fi<br>   repo_file_url=&quot;$DOWNLOAD_URL/linux/$lsb_dist/$REPO_FILE&quot;<br>   pre_reqs=&quot;ca-certificates curl libseccomp2 awk&quot;<br>   (<br>    if ! is_dry_run; then<br>     set -x<br>    fi<br>    $sh_c &quot;zypper install -y $pre_reqs&quot;<br>    $sh_c &quot;rm -f /etc/zypp/repos.d/docker-ce-*.repo&quot;<br>    $sh_c &quot;zypper addrepo $repo_file_url&quot;<br><br>    opensuse_factory_url=&quot;https://download.opensuse.org/repositories/security:/SELinux/openSUSE_Factory/&quot;<br>    if ! zypper lr -d | grep -q &quot;${opensuse_factory_url}&quot;; then<br>     opensuse_repo=&quot;${opensuse_factory_url}security:SELinux.repo&quot;<br>     if ! is_dry_run; then<br>      cat &gt;&amp;2 &lt;&lt;- EOF<br>       WARNING!!<br>       openSUSE repository ($opensuse_repo) will be enabled now.<br>       Do you wish to continue?<br>       You may press Ctrl+C now to abort this script.<br>      EOF<br>      ( set -x; sleep 20 )<br>     fi<br>     $sh_c &quot;zypper addrepo $opensuse_repo&quot;<br>    fi<br>    $sh_c &quot;zypper --gpg-auto-import-keys refresh&quot;<br>    $sh_c &quot;zypper lr -d&quot;<br>   )<br>   pkg_version=&quot;&quot;<br>   if [ -n &quot;$VERSION&quot; ]; then<br>    if is_dry_run; then<br>     echo &quot;# WARNING: VERSION pinning is not supported in DRY_RUN&quot;<br>    else<br>     pkg_pattern=&quot;$(echo &quot;$VERSION&quot; | sed &#39;s/-ce-/\\\\.ce.*/g&#39; | sed &#39;s/-/.*/g&#39;)&quot;<br>     search_command=&quot;zypper search -s --match-exact &#39;docker-ce&#39; | grep &#39;$pkg_pattern&#39; | tail -1 | awk &#39;{print \$6}&#39;&quot;<br>     pkg_version=&quot;$($sh_c &quot;$search_command&quot;)&quot;<br>     echo &quot;INFO: Searching repository for VERSION &#39;$VERSION&#39;&quot;<br>     echo &quot;INFO: $search_command&quot;<br>     if [ -z &quot;$pkg_version&quot; ]; then<br>      echo<br>      echo &quot;ERROR: &#39;$VERSION&#39; not found amongst zypper list results&quot;<br>      echo<br>      exit 1<br>     fi<br>     search_command=&quot;zypper search -s --match-exact &#39;docker-ce-cli&#39; | grep &#39;$pkg_pattern&#39; | tail -1 | awk &#39;{print \$6}&#39;&quot;<br>     # It&#39;s okay for cli_pkg_version to be blank, since older versions don&#39;t support a cli package<br>     cli_pkg_version=&quot;$($sh_c &quot;$search_command&quot;)&quot;<br>     pkg_version=&quot;-$pkg_version&quot;<br>    fi<br>   fi<br>   (<br>    pkgs=&quot;docker-ce$pkg_version&quot;<br>    if version_gte &quot;18.09&quot;; then<br>     if [ -n &quot;$cli_pkg_version&quot; ]; then<br>      # older versions didn&#39;t ship the cli and containerd as separate packages<br>      pkgs=&quot;$pkgs docker-ce-cli-$cli_pkg_version containerd.io&quot;<br>     else<br>      pkgs=&quot;$pkgs docker-ce-cli containerd.io&quot;<br>     fi<br>    fi<br>    if version_gte &quot;20.10&quot;; then<br>     pkgs=&quot;$pkgs docker-compose-plugin docker-ce-rootless-extras$pkg_version&quot;<br>    fi<br>    if version_gte &quot;23.0&quot;; then<br>      pkgs=&quot;$pkgs docker-buildx-plugin&quot;<br>    fi<br>    if ! is_dry_run; then<br>     set -x<br>    fi<br>    $sh_c &quot;zypper -q install -y $pkgs&quot;<br>   )<br>   echo_docker_as_nonroot<br>   exit 0<br>   ;;<br>  *)<br>   if [ -z &quot;$lsb_dist&quot; ]; then<br>    if is_darwin; then<br>     echo<br>     echo &quot;ERROR: Unsupported operating system &#39;macOS&#39;&quot;<br>     echo &quot;Please get Docker Desktop from https://www.docker.com/products/docker-desktop&quot;<br>     echo<br>     exit 1<br>    fi<br>   fi<br>   echo<br>   echo &quot;ERROR: Unsupported distribution &#39;$lsb_dist&#39;&quot;<br>   echo<br>   exit 1<br>   ;;<br> esac<br> exit 1<br>}<br><br># wrapped up in a function so that we have some protection against only getting<br># half the file during &quot;curl | sh&quot;<br>do_install</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8929bc3118b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uninstalling Ollama]]></title>
            <link>https://medium.com/@heartonbit/uninstalling-ollama-db78dd9545fa?source=rss-c6e638bf7de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/db78dd9545fa</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[Minkyu Shim]]></dc:creator>
            <pubDate>Tue, 17 Dec 2024 08:58:26 GMT</pubDate>
            <atom:updated>2024-12-17T08:58:26.859Z</atom:updated>
            <content:encoded><![CDATA[<p>a bash script to uninstall ollama entirely</p><p>Uninstalling things is often hard and troublesome. When I decided to use docker for ollama, it did. Residue of ollama prevent a docker instance initiating.</p><p>Here is what I found and succeeded to work through:</p><pre>#!/bin/bash<br><br># Define colors<br>RED=&#39;\033[0;31m&#39;<br>GREEN=&#39;\033[0;32m&#39;<br>YELLOW=&#39;\033[1;33m&#39;<br>BLUE=&#39;\033[0;34m&#39;<br>NC=&#39;\033[0m&#39; # No Color<br><br>echo -e &quot;${BLUE}🤖 Ollama Uninstallation Script${NC}&quot;<br>echo -e &quot;${BLUE}-------------------------${NC}&quot;<br><br># Check if script is run with sudo<br>if [ &quot;$EUID&quot; -ne 0 ]; then<br>    echo -e &quot;${RED}❌ This script requires root privileges.${NC}&quot;<br>    echo -e &quot;${YELLOW}Please run with sudo: sudo $0${NC}&quot;<br>    exit 1<br>fi<br><br># Check if Docker is running Ollama<br>if docker ps -a | grep -q ollama; then<br>    echo -e &quot;${YELLOW}🐳 Found Docker container for Ollama. Stopping and removing...${NC}&quot;<br>    if ! docker stop ollama 2&gt;/dev/null; then<br>        echo -e &quot;${RED}⚠️ Failed to stop Ollama container - it may not exist${NC}&quot;<br>    elif ! docker rm ollama 2&gt;/dev/null; then<br>        echo -e &quot;${RED}⚠️ Failed to remove Ollama container - it may not exist${NC}&quot;<br>    else<br>        echo -e &quot;${GREEN}✅ Docker cleanup completed.${NC}&quot;<br>    fi<br>fi<br><br># Check if Ollama is installed locally<br>if command -v ollama &amp;&gt; /dev/null; then<br>    echo -e &quot;${YELLOW}🔍 Found local Ollama installation. Removing...${NC}&quot;<br>    <br>    # Stop and disable service<br>    echo -e &quot;${YELLOW}⏹️  Stopping Ollama service...${NC}&quot;<br>    systemctl stop ollama<br>    <br>    echo -e &quot;${YELLOW}🚫 Disabling Ollama service...${NC}&quot;<br>    systemctl disable ollama<br>    <br>    # Remove service file<br>    echo -e &quot;${YELLOW}🗑️  Removing service file...${NC}&quot;<br>    rm -f /etc/systemd/system/ollama.service<br>    <br>    # Delete binary<br>    echo -e &quot;${YELLOW}🗑️  Removing Ollama binary...${NC}&quot;<br>    rm -f $(which ollama)<br>    <br>    # Cleanup remaining files and user/group<br>    echo -e &quot;${YELLOW}🧹 Cleaning up remaining files and user/group...${NC}&quot;<br>    rm -rf /usr/share/ollama<br>    userdel ollama<br>    groupdel ollama<br>    <br>    echo -e &quot;${GREEN}✅ Local Ollama installation removed.${NC}&quot;<br>else<br>    echo -e &quot;${RED}❌ No local Ollama installation found.${NC}&quot;<br>fi<br><br>echo -e &quot;${BLUE}-------------------------${NC}&quot;<br>echo -e &quot;${GREEN}✨ Ollama uninstallation completed!${NC}&quot;</pre><p>Voila!</p><h3>Reference</h3><p><a href="https://github.com/ollama/ollama/blob/main/docs/linux.md">https://github.com/ollama/ollama/blob/main/docs/linux.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db78dd9545fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“바다가 들린다” 잘도 화해하는구나]]></title>
            <link>https://medium.com/@heartonbit/%EB%B0%94%EB%8B%A4%EA%B0%80-%EB%93%A4%EB%A6%B0%EB%8B%A4-%EC%9E%98%EB%8F%84-%ED%99%94%ED%95%B4%ED%95%98%EB%8A%94%EA%B5%AC%EB%82%98-29c34f077750?source=rss-c6e638bf7de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/29c34f077750</guid>
            <category><![CDATA[바다가-들린다]]></category>
            <dc:creator><![CDATA[Minkyu Shim]]></dc:creator>
            <pubDate>Sun, 09 Feb 2020 23:53:49 GMT</pubDate>
            <atom:updated>2020-02-09T23:53:49.965Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*p0ehykXNayEnXpAq.jpg" /></figure><p>지브리 스튜디오가 거의 통째로 넷플릭스에 올라오는 바람에, 나름 팬이었던 나는 이유는 모르겠으나 챙겨보지 못했던 작품들 몇을 볼 수 있는 기회를 얻었다. 하여, 오늘은 설거지를 하는 김에 “바다가 들린다” 감상했다.</p><p>고등학생이지만 어른스런 주인공과 그의 사려깊은 친구 그리고 예측불허의 여자사람친구. 어른이 되는 길목에서 세 사람의 이야기. 그래 나도 저런 친구가 있었지(?) 괜히 폼잡으며 어른스러워지려고 애썼던 그런 시절도 있었고… 그게 남자다운거고 어른스런거라고 생각했었지만 왠걸 어른이 되고보니 그런 것들이 죄다 미성숙의 증거였다. 웃음 나오는 대목. 나를 옛날 생각으로 데려간 작품은 전체 이야기가 다 좋았지만 그 중에서 가장 인상적인 것은 다투고 싸운 인물들이 다들 참 잘도 화해한다는 것.</p><p>세월이 가니 다 용서가 되더라는 서사는 참 흐뭇하지만 세상일이 어디 그런가 사과를 해야 용서를 하고 화해가 이루어질텐데, 사과를 할 사람과 용서를 할 사람은 서로 거꾸로 알고 있기가 쉽고 화해의 길은 멀다. 모두가 모두를 용서하지 않아도 된다. 싫은 사람은 그냥 보지말고 살자.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29c34f077750" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[미디엄 첫글]]></title>
            <link>https://medium.com/@heartonbit/d0ee2e41f2be?source=rss-c6e638bf7de6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0ee2e41f2be</guid>
            <dc:creator><![CDATA[Minkyu Shim]]></dc:creator>
            <pubDate>Sun, 08 Sep 2013 15:47:09 GMT</pubDate>
            <atom:updated>2013-09-08T15:47:09.454Z</atom:updated>
            <content:encoded><![CDATA[<p>미디엄 쓰기권한 부여 기념 첫글.</p><p>앞으로 잘 써보겠습니다.</p><p>Thank you for letting me write.</p><p>Feels really good to write especially nothing bothering around text. Font is great. line height is proper. It’s fun to type. awesome job.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0ee2e41f2be" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>