2024 m. balandžio 17 d., trečiadienis

Docker


Downloading docker

Downloading container:
$ sudo docker pull ubuntu
$ sudo docker pull ubuntu:14.04

14.04 is a tag from docker image repository, it can be found here.


Deleting docker container
$ sudo docker rmi [NAME/IMAGE ID]
$ sudo docker rmi ubuntu:14.04
$ sudo docker rmi 00fd29ccc6f1

Listing

Info about docker:
sudo docker info

List all images:
$ sudo docker images

List running and stopped containers, -a for all
$ sudo docker ps

Searching
 
$ sudo docker search nginx
$ sudo docker search alpine --filter 'is-official=true'
$ sudo docker images --format '{{.Size}} {{.Repository}}
'

 
 
Running

Run docker container:
$ sudo docker run hello-world

Attaching to process:
$ sudo docker attachach [container-id]

Run and attach to it:
$ sudo docker run -it ubuntu /bin/bash
 
Ctrl + P + Q - Detaching from container

Running and binding port:
$ sudo docker run  -p 90:90  -t [hash]

Running command:
$ docker run -it alpine:latest sleep 10

Reataching to container
$ docker ps
$ docker exec -it e37f24dc7e0a bash


Restarting

$ sudo docker restart 7d5bc3d73c1b

# After changing compose file run
$ sudo docker-compose up -d

Stoping

$ sudo docker stop 7d5bc3d73c1b # sends SIGTERM to PID1
$ sudo docker kill 7d5bc3d73c1b # sends SIGKILL to PID1

Visi konteineriai saugomi:
# ls /var/lib/docker/containers/


$ sudo docker images -q
$ sudo docker rmi 9f163cb3061e




Deleting Images

You cannot delete an image that is associated with a container in the running (Up) or stopped (Exited) states.

$ sudo docker images -q
$ sudo docker rmi 9f163cb3061e



$ groups

#Add user to docker group so we don't need sudo
$ sudo usermod -aG docker $user
$ newgrp docker

Useful command lines:

# Deleting all unused containers
$ docker container rm $(docker container ls -a -q)

# Deleting all unused images
$ docker image rm $(docker images -q)

Monitoring tools:

Resources:
Docker playground


Updates:
2024-05-28 - Added useful commands.

2024 m. balandžio 7 d., sekmadienis

Knygų nuorodos

Audio knygos - 🔗

Skaitomos knygos - 🔗

Įvairios:  🔗

2024 m. balandžio 4 d., ketvirtadienis

Wii U Hacks homebrew

 WiU 5.5.5 homebrew - Guide

Custom firmware (often abbreviated as "CFW") 

  • Use “ROM hacks” for games that you own.
  • Backup, edit and restore saves for many games.
  • Play games for older systems with various emulators, using RetroArch or other standalone emulators.
  • Play out-of-region games.
  • Dump your Wii U game discs to a format that can be installed on your internal or external Wii U storage drive.

 

An environment consists of ordered "setup modules" like Tiramisu, which are executed once to establish the environment's configuration.

About SD cards: Note: Avoid class 4 SD Cards, and avoid eBay!

 

What is NAND -  How to dump NAND

🎥 - short 

🎥 - more detailed


Aroma

🎥 Aroma Install Guide

 

Pretendo setup