Skip to content

Instantly share code, notes, and snippets.

@MensoMG
MensoMG / docker alpine
Created September 3, 2022 21:24
frequent practices for docker alpine
# Usage
## Packages
Replacing your current base image with the Docker Alpine Linux image usually requires updating the package names to the corresponding ones in the [Alpine Linux package index][packageindex]. We use the `apk` command to manage packages. It works similar to `apt` or `yum`.
An example installing the `nginx` package would be `apk add --update-cache nginx`. The `--update-cache` flag fetches the current package index before adding the package. We don't ship the image with a package index (since that can go stale fairly quickly).
## Example
E [2022-01-07T21:41:59.198Z] Unable to register system, is the Avahi daemon running?
I [2022-01-07T21:45:22.589Z] [Client 18] OK text/html 0
I [2022-01-07T21:45:22.589Z] [Client 18] Closing connection from 'localhost'.
I [2022-01-07T21:45:22.638Z] [Client 19] GET http://localhost:8000/logfile.txt HTTP/1.1
I [2022-01-07T21:45:22.639Z] [Client 19] Partial Content text/plain 307
I [2022-01-07T21:45:22.639Z] [Client 19] Closing connection from 'localhost'.
I [2022-01-07T21:45:23.585Z] Saving system state to '/var/snap/ps-printer-app/common/ps-printer-app.state'.
I [2022-01-07T21:45:27.678Z] [Client 20] Accepted connection from 'localhost'.
I [2022-01-07T21:45:27.678Z] [Client 20] GET http://localhost:8000/logfile.txt HTTP/1.1
I [2022-01-07T21:45:27.678Z] [Client 20] Partial Content text/plain 425
*PPD-Adobe: "4.3"
*%=============================================================================
*%
*% PPD file for Kyocera FS-1020MFP (European English)
*% Linux Version
*%
*% (C) 2012 KYOCERA Document Solutions Inc.
*%
*% Permission is granted for redistribution of this file as long as this
*% copyright notice is intact and the contents of the file are not altered
@MensoMG
MensoMG / keybase.md.
Created April 18, 2021 17:58
kaeybase.md.
### Keybase proof
I hereby claim:
* I am mensomg on github.
* I am menso (https://keybase.io/menso) on keybase.
* I have a public key ASCcVziXusjAbikpTS3YSsNMPiOvZgsn3OsC8RU3AD1LQwo
To claim this, I am signing this object: