Skip to content

fj0r/docker.nu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

Docker, Nerdctl, Podman

dx

Run a container with preset using dx

Presets can be defined in the $env.CONTCONFIG file, with the content as follows:

preset:
- name: rust
  image: rust
  cmd: []
  env:
    CARGO_HOME: /opt/cargo
  volumn:
    .: /world
    ~/.cargo: /opt/cargo
  port:
    '8000': 80
  cmd: []
  args:
  - --cap-add=SYS_ADMIN
  - --cap-add=SYS_PTRACE
  - --security-opt
  - seccomp=unconfined
  • specify the container_name field, delete the existing container if it exists and then run.

Others

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •