<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ruslan&#39;s Tech Blog</title>
    <link>https://blog.bekenev.net/tags/podman-docker.html</link>
    <description>Software development related stuff</description>
    <language>en-us</language>
    <lastBuildDate>Sat, 04 Jun 2022 15:30:00 +0000</lastBuildDate>
    <atom:link href="https://blog.bekenev.net/tags/podman-docker/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Podman detach keys</title>
      <link>https://blog.bekenev.net/2022/06/04/escape-sequence-in-podman.html</link>
      <pubDate>Sat, 04 Jun 2022 15:30:00 +0000</pubDate>
      <guid>https://blog.bekenev.net/2022/06/04/escape-sequence-in-podman.html</guid>
      <description>&lt;h2 id=&#34;tldr&#34;&gt;TLDR;&lt;/h2&gt;&#xA;&lt;p&gt;Add &lt;code&gt;detach-keys = &amp;quot;ctrl-@,ctrl-q&amp;quot;&lt;/code&gt; to &lt;code&gt;[engine]&lt;/code&gt; section in &lt;code&gt;~/.config/containers/containers.conf&lt;/code&gt; file&lt;/p&gt;&#xA;&lt;h2 id=&#34;description&#34;&gt;Description&lt;/h2&gt;&#xA;&lt;p&gt;I recently switched to Podman and the only issue I faced is CTRL+P won&amp;rsquo;t work properly inside containers.&lt;/p&gt;&#xA;&lt;p&gt;That&amp;rsquo;s exactly the same issue I had with Docker, described in my &lt;a href=&#34;https://blog.bekenev.net/2018/03/01/docker-terminal-navigation.html&#34;&gt;Docker detach keys&lt;/a&gt; post.&lt;/p&gt;&#xA;&lt;p&gt;The solution from that post doesn&amp;rsquo;t work since it was purely docker-specific configuration file.&lt;/p&gt;&#xA;&lt;p&gt;In case of Podman the configuration file is &lt;code&gt;~/.config/containers/containers.conf&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The line that must be added is &lt;code&gt;detach_keys = &amp;quot;ctrl-@,ctrl-q&amp;quot;&lt;/code&gt; (feel free to choose any other sequence).&lt;/p&gt;&#xA;&lt;p&gt;The line must be added under &lt;code&gt;[engine]&lt;/code&gt; table.&lt;/p&gt;&#xA;&lt;p&gt;When this is done &lt;code&gt;ctrl-p&lt;/code&gt; is not going to be a keybinding that starts an escape sequence.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
