Start a shell session in a running container (without ssh)
$ docker exec -it "id of running container" bash
package main | |
import "fmt" | |
// Very naive answer. | |
// fibonacci is a function that returns | |
// a function that returns an int. | |
func fibonacci() func() int { | |
n := 0 | |
a := 0 |
Start a shell session in a running container (without ssh)
$ docker exec -it "id of running container" bash
Salt is a different approach to infrastructure management, founded on the idea that high-speed communication with large numbers of systems can open up new capabilities. This approach makes Salt a powerful multitasking system that can solve many specific problems in an infrastructure.
The backbone of Salt is the remote execution engine, which creates a high-speed, secure and bi-directional communication net for groups of systems.
On top of this communication system, Salt provides a configuration management system called Salt States
For mounted volume in VM or attached volume in Docker container, you may copy your SSH public and private key to the "shared" directory, and then copy then to the virtual environment SSH folder (~/.ssh/), such as:
$ cp id_rsa ~/.ssh/id_rsa
$ cp id_rsa.pub ~/.ssh/id_rsa.pub
$ eval `ssh-agent`
$ ssh-add
Or else, generate a new SSH key pairs and add the public key to GitHub (may refer to the "Generating a new SSH Key" help documentation on GitHub)
/* | |
Parts of this code is inspired from the following: | |
[1] https://userstyles.org/styles/105000/smart-dark | |
*/ | |
html { | |
background-color: #222 !important; | |
} | |
body { |
launch() -> | |
register(echo, spawn(demo, echo, [])). | |
echo() -> | |
receive | |
{Pid, Msg} -> | |
Pid ! Msg, | |
echo() | |
end. |