I created an Ubuntu container, and then got out of it using Ctrl+C. I tried $ docker restart [image], and then I saw the correct container ID. Then, I tried running $ docker attach [container ID], but then I got this error messga: You cannot attach to a stopped container, start it first. Then, I verified this by runnign $ docker ps, and I did not see the container I restarted earlier.
I have no idea what’s going on. If anyone can help, I would really appreciate it.