Jump to content

Docker Tutorial: Difference between revisions

No edit summary
Line 114: Line 114:
Here's my goto recipe when creating a container from scratch.
Here's my goto recipe when creating a container from scratch.


'''In the container'''
<syntaxhighlight lang=Bash style="border:2px dashed black">
<syntaxhighlight lang=bash>
# Load up apt caches
# Load up apt caches
apt update
apt update
Line 124: Line 123:


You can also setup SSH for network access.
You can also setup SSH for network access.
'''In the container'''
 
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash style="border:2px dashed black">
# Install ssh server and sudo for your new user
# Install ssh server and sudo for your new user
apt install sudo openssh-server
apt install sudo openssh-server
Cookies help us deliver our services. By using our services, you agree to our use of cookies.