Score:-1

Restore deleted docker container in Virtual Machine

vi flag

I have connected to a VM via SSH in Visual Studio Code and in that connected to docker container. When I closed the container, the container got deleted permanently. When I check in VM "docker ps" , it is not showing the container ID.

Please help to restore the container

Score:3
vn flag

Try running docker ps -a - this show all containers - including stopped ones.

If it's there, just run: docker start <container-name>

If it's not on the list, then you didn't just stop it, but instead removed it completely. In this case, the container have to be created again.

Hopefully, you have set up persistent storage for your containers.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.