jjethwa / rundeck

GNU General Public License v3.0
123 stars 137 forks source link

running the container exit immediately #122

Open lmilbaum opened 6 years ago

lmilbaum commented 6 years ago
sudo docker run -p 4440:4440 -e SERVER_URL=http://localhost:4440 --name rundeck -t guardium:latest
Password:
=>Initializing rundeck - This may take a few minutes
=>Generating rundeck key
Generating public/private rsa key pair.
Your identification has been saved in /var/lib/rundeck/.ssh/id_rsa.
Your public key has been saved in /var/lib/rundeck/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:WJMKSeM9gdcwBXQf7wjsnPQU+5YpuMjok3v8zd7dQqI rundeck@67f84b12aff0
The key's randomart image is:
+---[RSA 4096]----+
|    oo*=o o      |
|   o.+.=.o =     |
|    +.o B + .    |
|     . O B + o   |
|      o S + *    |
|     o . . o. .  |
|    .oo .  . o   |
|   .o o  oE. ... |
|    o+ ...+ . ...|
+----[SHA256]-----+
=>Generating ssl cert
Importing keystore /etc/ssl/certs/java/cacerts to /etc/rundeck/ssl/keystore...

docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
Lioras-MBP:guardium liora$ docker ps -l
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                     PORTS               NAMES
67f84b12aff0        guardium:latest     "/opt/run"          16 seconds ago      Exited (1) 8 seconds ago                       rundeck
jjethwa commented 6 years ago

Hi @lioramilbaum

Is that the full log from the container? Are you using any volumes? Have you tried running wth the daemon flag?

lmilbaum commented 6 years ago

@jjethwa I am newbie with docker. I've listed the stdout. Where can I find the full log from the container? Not using any volumes and haven't used the daemon flag (don't know how yet).

lmilbaum commented 6 years ago

When running with the original image jordan/rundeck with no environment variables set, it runs perfectly

jjethwa commented 6 years ago

Hi @lioramilbaum

NP! Let's see if I can help 😄 You should be able to get the logs using the docker logs command

sudo docker logs <CONTAINER_NAME or ID>

To try running a container with the daemon flag, you add -d to the docker run command.