4 ms·
Docker for a command line tool? I thought docker was more for your public facing service sort of thing. Does it even have a full on terminal, being a container?
by corobo 11y ago
Docker for a command line tool? I thought docker was more for your public facing service sort of thing. Does it even have a full on terminal, being a container?
I'll be honest I've not been keeping up with Docker. It shows, right?
- jonesetc 11y ago-t when running a docker container allocates a pseudo-tty. Docker is useful for trying out cli interpreters like this, iojs, or any thing else of the sort. I wouldn't want to use docker if I planned on keeping it around to use more than a couple of times though.
- xj9 11y agoA Docker container is like chroot, but portable. So yes. You can do docker exec -it $NAME /bin/bash to get a shell in a running container, or docker run --rm -it $NAME /bin/bash to get a shell in a new container that will remove itself upon exit. Neither of these require your docker host to be local.