User Tools

Site Tools


docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
docker [2021/06/24 13:10]
Jan Forman removed
— (current)
Line 1: Line 1:
-====== CargOS ====== 
-[[https://cargos.io/downloads/|CargOS]] 
-====== Proxmox / LXC ====== 
-<code> 
-# Allow running Docker inside LXC 
-lxc.aa_profile = unconfined 
-lxc.cap.drop = mac_override sys_time sys_module sys_rawio 
-</code> 
-Note: this affect security! 
- 
-====== Docker ====== 
-===== Data directory ===== 
-<code>/var/lib/docker 
-/var/lib/docker/vfs/dir 
-/var/lib/docker/volumes</code> 
- 
-===== Show info ===== 
- 
-<code> 
-docker info 
-</code> 
- 
-===== Get image from repository ===== 
-<code> 
-docker pull centos 
-</code> 
- 
-===== Run image in background ===== 
-<code> 
-docker run -d -e VARIABLE=CONTENT -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 222:22 centos 
---rm remove after 
---name INSTANCE_NAME 
--it interactive 
-</code> 
- 
-===== Show running / images / stats ===== 
-<code> 
-docker ps 
-docker ps -a 
-docker images 
-docker stats {container} 
-</code> 
- 
-===== Return info about container in JSON ===== 
-<code> 
-docker inspect {container} 
-</code> 
- 
-===== Enter / Stop / Start Container ===== 
-<code> 
-docker attach {container} 
-docker stop {container} 
-docker start {container} 
-</code> 
- 
-===== Map directory ===== 
-<code> 
--v /home/user:/home/user:ro -u 500:500 
-</code>