Added in version 1.3 of package remote-shell-lib.
procedure
#:contentcontentname:string?content:path-string?
Changed in version 1.7 of package remote-shell-lib: Added the #:platform argument.
procedure
( docker-image-id #:namename)→(or/c #fstring? )
name:string?
procedure
( docker-image-remove #:namename)→void?
name:string?
procedure
#:image-nameimage-name[ #:platformplatform#:networknetwork#:volumesvolumes#:envvarsenvvars#:portsports#:memory-mbmemory-mb#:swap-mbswap-mbname:string?image-name:string?= '()envvars :
If platform is a string, then the created container uses that platform. Specifying a platform is useful when a host can run multiple platforms and image-name is also available for multiple platforms.
If network is a string, then the created container uses that network.
The volumes argument supplies a mapping of host directories to container directory paths, where the path on the container maps to the host directory in the indicated mode: 'ro for read-only or 'rw for read–write.
The envvars argument supplies a mapping of environment variable names to values for the container’s environment.
The ports argument supplies a mapping of host port numbers to container port numbers, where attempts to connect to the host port number at the host will be forward to the container at the container’s port number. Using 0 as the host port allocates an ephemeral port for the host.
The memory-mb and swap-mb arguments determine the amount of memory that the container can use in megabytes (MB), where memory-mb is “real” memory and swap-mb is additional swap space. If only one of the numbers is provided, the default for the other is the same (i.e., by default, the total amount of memory available including swap space is twice the provided value). If neither is provided as a number, no specific limit is imposed on the container.
Changed in version 1.5 of package remote-shell-lib: Added #:memory-mb and #:swap-mb.
Changed in version 1.6: Added #:platform.
Changed in version 1.8: Added #:envvars and #:ports.
procedure
( docker-running? #:namename)→boolean?
name:string?
procedure
( docker-remove #:namename)→void?
name:string?
procedure
( docker-start #:namename)→void?
name:string?
procedure
( docker-stop #:namename#:wait?wait?)→void?
name:string?wait?:#t
If wait? is true, then docker-stop returns only after docker-running? returns #f, since a container may stay in the running state for some time after requesting a stop.
Changed in version 1.9 of package remote-shell-lib: Added #:wait?.
procedure
commandarg...name:string?command:path-string?arg:path-string?
The mode argument determines how failure of the command is handled—either because the command exits with failure on the container or due to a problem accessing the container—as well as the return value for success. The 'error mode raises an exception for failure and returns (void ) for success, while 'result mode returns a boolean indicating whether the command was successful.
procedure
#:srcsrc#:destdestname:string?src:path-string?dest:path-string?
The mode argument determines how failure of the copy is handled—either due to path problems or a problem accessing the container—as well as the return value for success. The 'error mode raises an exception for failure and returns (void ) for success, while 'result mode returns a boolean indicating whether the copy was successful.