Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running the container exit immediately #122

Open
lmilbaum opened this issue Mar 21, 2018 · 4 comments
Open

running the container exit immediately #122

lmilbaum opened this issue Mar 21, 2018 · 4 comments

Comments

@lmilbaum
Copy link

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
@lmilbaum lmilbaum changed the title running the container exit immidiatly running the container exit immediately Mar 21, 2018
@jjethwa
Copy link
Owner

jjethwa commented Mar 21, 2018

Hi @lioramilbaum

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

@lmilbaum
Copy link
Author

@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
Copy link
Author

lmilbaum commented Mar 21, 2018

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

@jjethwa
Copy link
Owner

jjethwa commented Mar 21, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants