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

Use of Linux bzip2 command

1. Command Introduction bzip2 is used to compress...

Vue Beginner's Guide: Creating the First Vue-cli Scaffolding Program

1. Vue--The first vue-cli program The development...

Getting Started with Nginx Reverse Proxy

Table of contents Overview The role of reverse pr...

5 basic skills of topic page design (Alibaba UED Shanmu)

This topic is an internal sharing in the second h...

We're driving IE6 to extinction on our own

In fact, we wonder every day when IE6 will really...

Detailed explanation of the usage of scoped slots in Vue.js slots

Table of contents No slots Vue2.x Slots With slot...

Viewing and analyzing MySQL execution status

When you feel that there is a problem with MySQL ...

Sample code for making desktop applications with vue + Electron

1.vue packaging Here we use the vue native packag...

Command to view binlog file creation time in Linux

Table of contents background analyze method backg...

The webpage cannot be opened because the div element lacks a closing tag

At first I thought it was a speed issue, so I late...

Markup Language - List

Standardized design solutions - markup languages ...

MySQL index for beginners

Preface Since the most important data structure i...

Detailed tutorial on installing ElasticSearch 6.4.1 on CentOS7

1. Download the ElasticSearch 6.4.1 installation ...