Docker starts in Exited state

Docker starts in Exited state

After docker run, the status is always Exited

Solution:

Add parameter: -it

docker run -it -d -p 80 -name static_web cjk1/benn

-d: Run the container in the background and return the container ID;

-i: Run the container in interactive mode, usually used with -t;

-t: reallocate a pseudo input terminal for the container, usually used together with -i;

Supplement: docker restart exited process command

The server restarted and many Docker containers crashed

docker restart $(docker ps -a -q)

docker ps view

The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me.

You may also be interested in:
  • docker run -v mounts data volumes abnormally, and the container status is always restarting
  • A brief discussion on the problem of Docker run container being in created state
  • Implementation of Docker container state conversion
  • After docker run, the status is always Exited
  • Zabbix monitors docker container status [recommended]
  • How to monitor the running status of docker container shell script

<<:  Let's talk about the problem of Vue integrating sweetalert2 prompt component

>>:  IE6 BUG and fix is ​​a preventive strategy

Recommend

Docker uses busybox to create a base image

The first line of a Docker image starts with an i...

Detailed explanation of Docker Swarm concepts and usage

Docker Swarm is a container cluster management se...

Summary of various postures of MySQL privilege escalation

Table of contents 1. Write Webshell into outfile ...

jQuery implements the bouncing ball game

This article shares the specific code of jQuery t...

How to export mysql query results to csv

To export MySQL query results to csv , you usuall...

js implements form validation function

This article example shares the specific code of ...

MySQL database optimization: index implementation principle and usage analysis

This article uses examples to illustrate the prin...

CSS3 click button circular progress tick effect implementation code

Table of contents 8. CSS3 click button circular p...

Detailed explanation of the command mode in Javascript practice

Table of contents definition structure Examples C...

Detailed explanation of mysql.user user table in Mysql

MySQL is a multi-user managed database that can a...

CSS to achieve the effect of rotating flip card animation

The css animation of the rotating flip effect, th...

WeChat applet date and time component (year, month, day, hour, and minute)

This article example shares the specific code of ...

A brief discussion on macrotasks and microtasks in js

Table of contents 1. About JavaScript 2. JavaScri...