Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Documentation on second/further use (mac) #23

Open
YangHee-Min opened this issue Jul 30, 2019 · 1 comment
Open

Documentation on second/further use (mac) #23

YangHee-Min opened this issue Jul 30, 2019 · 1 comment

Comments

@YangHee-Min
Copy link
Contributor

YangHee-Min commented Jul 30, 2019

Issue

After running sct_docker the first time, I simply terminated the window and tried to run it again using:

docker run -p 2222:22 --rm -it -v ~/docker_shared_folder://home/sct/docker_shared_folder neuropoly/sct:sct-v4.0.0-beta.0-ubuntu-18.04

However, I got the following error message:
docker: Error response from daemon: driver failed programming external connectivity on endpoint vigorous_euler (057e441f34bae6501a244310d6b6bde927d930c2f3f69be5bad79a61c608a34c): Bind for 0.0.0.0:2222 failed: port is already allocated.

I went into the documentation, but did not find anything on the subject.

Solution

  1. Open up a new terminal window

  2. Use command docker ps

  3. Find name of docker container under column labeled NAMES

  4. Use command docker stop [DOCKER NAME]

Request

Add to documentation steps on how to terminate docker container and second/further use

@YangHee-Min YangHee-Min changed the title Documentation on second/further use Documentation on second/further use (mac) Jul 30, 2019
@zougloub
Copy link
Contributor

I was under the impression that a container launched with interactive + terminal would get terminated on logout...

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

No branches or pull requests

2 participants