<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=How_to_make_control-p_work_in_docker</id>
	<title>How to make control-p work in docker - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.abuissa.net/index.php?action=history&amp;feed=atom&amp;title=How_to_make_control-p_work_in_docker"/>
	<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=How_to_make_control-p_work_in_docker&amp;action=history"/>
	<updated>2026-04-06T23:12:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.abuissa.net/index.php?title=How_to_make_control-p_work_in_docker&amp;diff=43&amp;oldid=prev</id>
		<title>Razzi: Created page with &quot;Docker uses &lt;code&gt;c-p c-q&lt;/code&gt; to detach, so &lt;code&gt;c-p&lt;/code&gt; doesn&#039;t go up to the previous command in a command like &lt;code&gt;docker run -it debian bash&lt;/code&gt; as I&#039;d expect....&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.abuissa.net/index.php?title=How_to_make_control-p_work_in_docker&amp;diff=43&amp;oldid=prev"/>
		<updated>2021-12-03T21:19:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Docker uses &amp;lt;code&amp;gt;c-p c-q&amp;lt;/code&amp;gt; to detach, so &amp;lt;code&amp;gt;c-p&amp;lt;/code&amp;gt; doesn&amp;#039;t go up to the previous command in a command like &amp;lt;code&amp;gt;docker run -it debian bash&amp;lt;/code&amp;gt; as I&amp;#039;d expect....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Docker uses &amp;lt;code&amp;gt;c-p c-q&amp;lt;/code&amp;gt; to detach, so &amp;lt;code&amp;gt;c-p&amp;lt;/code&amp;gt; doesn&amp;#039;t go up to the previous command in a command like &amp;lt;code&amp;gt;docker run -it debian bash&amp;lt;/code&amp;gt; as I&amp;#039;d expect.&lt;br /&gt;
&lt;br /&gt;
The solution is to remap the detach key&amp;lt;ref&amp;gt;https://stackoverflow.com/questions/20828657/docker-change-ctrlp-to-something-else&amp;lt;/ref&amp;gt; as follows:&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat ~/.docker/config.json&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;credsStore&amp;quot; : &amp;quot;desktop&amp;quot;,&lt;br /&gt;
  &amp;quot;auths&amp;quot; : {},&lt;br /&gt;
  &amp;quot;detachKeys&amp;quot;: &amp;quot;ctrl-]&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Razzi</name></author>
	</entry>
</feed>