[Fiware-developer-experience] [docker] Accessing Devguide container without SSH

Alvaro del Castillo acs at bitergia.com
Wed Dec 9 18:23:10 CET 2015


El mié, 09-12-2015 a las 12:11 +0100, Alberto Martín Casado escribió:
> Hi!
> 
> As we discussed, there's another way to access to a interactive shell
> inside a container without SSH.
> 
> As stands in Docker documentation, there's a way to bring a shell
> using docker. As we are using docker compose, the approach is a bit
> different than in the documentation (using command exec instead of
> run, as the container is already running). It is as simply as doing:
> 
> docker exec -i -t <container_name> /bin/bash
> 
> And the container's shell will appear.
> 
> Hope it helps, and sorry for not letting you know about the change.

Sometimes it is useful to specify the TERM you are using so the shell
works correctly in it:


docker exec -t -i <container_name> env TERM=xterm /bin/bash


Cheers

> 
> Best,
> 
> 
> Alberto Martín
> _______________________________________________
> Fiware-developer-experience mailing list
> Fiware-developer-experience at lists.fiware.org
> https://lists.fiware.org/listinfo/fiware-developer-experience

-- 
Alvaro del Castillo San Félix
acs at bitergia.com - Chief Technical Officer (CTO)
http://www.bitergia.com
"Software metrics for your peace of mind"






More information about the Fiware-developer-experience mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy