question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Add ssh to docker image

See original GitHub issue

Leveraging the Docker image in CircleCI, I’m running into issues fully leveraging git in the way that I had with previous images I had run my build on. In particular, being able to push changed to my gh-pages branch from CI. It looks like this is due to a lack of ssh, could we get that added to the image?

Separately, I’m not a very advanced user in this context, but is there a good way for me to overcome your use of USER pwuser in the build? It would allow for the use (maybe also the install) of sudo and other tools without getting blocked by the lock:

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

This would all for actually confirming what sort of things should be added to the build in order to leverage the image more successfully when running into issue like this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Westbrookcommented, Sep 2, 2020

Oooh, yes! That did the trick. 🔥🔥🔥🔥🔥🔥🔥

I’m OK with not worrying about having sudo, for now… Other than a process slowdown that I haven’t tracked down yet, this gets my use of Playwright fully caught up to where my project was before the conversion. Woot!

1reaction
aslushnikovcommented, Sep 1, 2020

In particular, being able to push changed to my gh-pages branch from CI. It looks like this is due to a lack of ssh, could we get that added to the image?

@Westbrook I think this is because we didn’t have git installed there; it’s been added recently so should be available in the next release.

Separately, I’m not a very advanced user in this context, but is there a good way for me to overcome your use of USER pwuser in the build? It would allow for the use (maybe also the install) of sudo and other tools without getting blocked by the lock:

Sounds reasonable, we’ll enable password-less sudo for pwuser inside the docker image.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSH into a Docker Container? How to Execute Your Commands
In this post, we'll cover how to execute commands from a prompt within the Docker container along with detailed examples and best practices....
Read more >
SSH into Docker Container or Use Docker Exec?
Step 1 - Build docker image with OpenSSH. First, you will need an SSH keypair. · Step 2 - Running the Docker container...
Read more >
How to SSH into Docker Containers [Step-by-Step]
1. Open a terminal on your local machine. · 2. Next, run the docker run command to start the container. · 3. Now,...
Read more >
How to SSH Into a Docker Container - How-To Geek
Instead of adding SSH to individual containers, install it once on the physical host that's running Docker. Use SSH to connect to your...
Read more >
SSH into Docker Containers [A Step-by-Step Guide] | StrongDM
Directly Connect via SSH. You can circumvent these built-in Docker commands and simply install an OpenSSH server on your container via the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found