Closed rnikoopour closed 4 years ago
Description The docker container is started with a static name. This prevents more than one container running.
Solution Change lsp-docker-launch-new-container to inject a random number into the container name:
lsp-docker-launch-new-container
(defun lsp-docker-launch-new-container (docker-container-name path-mappings docker-image-id server-command) (split-string (--doto (format "docker run --name %s --rm -i %s %s %s" (format "%s-%d" docker-container-name (random 1000)) (->> path-mappings (-map (-lambda ((path . docker-path)) (format "-v %s:%s" path docker-path))) (s-join " ")) docker-image-id server-command)) " "))
Description The docker container is started with a static name. This prevents more than one container running.
Solution Change
lsp-docker-launch-new-container
to inject a random number into the container name: