Hi, By default, you would need the tty if you want the shell.
You can find some details here: http://blog.nanthrax.net/?p=839 <http://blog.nanthrax.net/?p=839> https://github.com/apache/karaf/tree/master/examples/karaf-docker-example <https://github.com/apache/karaf/tree/master/examples/karaf-docker-example> Regards JB > Le 6 avr. 2020 à 11:04, Steinar Bang <s...@dod.no> a écrit : > > I'm using https://labs.pay-with-docker.com which lets anyone with a > dockerhub user try out a docker container for 4 hours until it's teared > down. > > I've done the following: > 1. Opened https://labs.play-with-docker.com in a browser > > 2. Pulled down docker image 4.2.8: > docker pull apache/karaf:4.2.8 > > 3. Did the command "docker images": > $ docker images > REPOSITORY TAG IMAGE ID CREATED > SIZE > apache/karaf 4.2.8 e6e9f0f9c039 2 weeks ago > 291MB > [node1] (local) root@192.168.0.48 ~ > $ > > 4. Tried the command "docker run apache/karaf" but got an error message > that docker was unable to find tag latest > > 5. Tried the command "docker run apache/karaf:4.28" which worked better > > 6. I didn't get the prompt back in the command shell > > 7. I tried opening port 8101 by clicking on the "Open port" button, but > that failed > > 8. I ssh'd in using the provided hostname and got a docker command > line: > ssh ip172-18-0-18-bq5dejroudsg00b7t...@direct.labs.play-with-docker.com > > 9. I tried doing ssh into karaf but failed: > $ ssh -p 8101 karaf@localhost > ssh: connect to host localhost port 8101: Connection refused > [node1] (local) root@192.168.0.48 ~ > $ > > Is there a way to get a karaf console? > > (it doesn't have to be through ssh) > > Or is the container karaf without a console? > > Thanks! > > - Steinar >