Solved: Error response from daemon: Container is not running

When we created the docker container using command,

$ sudo docker create ubuntu:18.04

and then tried to access the shell as,

$ sudo docker exec -i -t 49db5136dac8 bash

we got an error as,

Error response from daemon: Container 4285cb789189ea8feed154af78a4d736c828b0d149c535fc73b24a44411e8dca is not running

This error is because, when we create the docker container, this container is not running by default, and is in exited state as can be seen below,

Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )


$ sudo docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED              STATUS                     PORTS               NAMES
49db5136dac8        ubuntu:18.04        "/bin/bash"         2 minutes ago        Exited (0) 2 minutes ago                       dazzling_hawking

Solution :

the solution to this problem is we need to run the container in background using IMAGE ID as,

$ sudo docker run -it  -d "ubuntu:18.04"

Leave a Comment

Android Android Build system Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto / Bitbake / Openembedded