Problem Description:
Turn on the virtual machine and passdocker imagesChecking the running status
of the container, you can see that the container ID of ActiveMQ is
3af156432993
So start the container:
docker run 3af156432993
The following problems occurred:
[root@localhost etc]# docker run 3af156432993
2020-11-16 07:00:03,422 CRIT Supervisor running as root (no user in config file)
2020-11-16 07:00:03,422 WARN Included extra file "/etc/supervisor/conf.d/activemq.conf" during parsing
2020-11-16 07:00:03,422 WARN Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
2020-11-16 07:00:03,438 INFO RPC interface 'supervisor' initialized
2020-11-16 07:00:03,438 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2020-11-16 07:00:03,438 INFO supervisord started with pid 1
2020-11-16 07:00:04,441 INFO spawned: 'cron' with pid 15
2020-11-16 07:00:04,443 INFO spawned: 'activemq' with pid 16
2020-11-16 07:00:05,722 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-11-16 07:00:05,722 INFO success: activemq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
The cursor keeps flashing
The cursor keeps flashing
solution:
1. First CTRL+C to
stop the command
2. Rundocker start container name
I use
docker start myactivemq
The following effects show
Successfully started! ! !
The problem: the difference between run and start in docker
docker run ----- "Specify a mirror, use the image to generate a container
docker start ----- "Specify a container, start a previously generated container