Skip to content

error running example in local Docker environment #613

@Laurian

Description

@Laurian

I tried this on Docker on Mac, fx installed via brew, running from download of this repo:

➜  fx-master fx --version
fx version 0.9.47
➜  fx-master fx up --name hello ./examples/functions/JavaScript/func.js 
2021/05/31 14:03:04  info provisioning localhost ...
Starting building
2 / 100 [-->______________________________________________________________________________________________________________] 2.00% ? p/s
Starting deploying hello
1 / 100 [->_______________________________________________________________________________________________________________] 1.00% ? p/s
deploying hello: ✗
*****************
create container request failed: request http://localhost:8866/v1.41/containers/create?name=hello ({"Hostname":"","Domainname":"","User":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"ExposedPorts":{"3000/tcp":{}},"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":null,"Cmd":null,"Image":"hello-20210531140308:latest","Volumes":null,"WorkingDir":"","Entrypoint":null,"OnBuild":null,"Labels":null,"HostConfig":{"Binds":null,"ContainerIDFile":"","LogConfig":{"Type":"","Config":null},"NetworkMode":"","PortBindings":{"3000/tcp":[{"HostIp":"0.0.0.0","HostPort":"54722"}]},"RestartPolicy":{"Name":"","MaximumRetryCount":0},"AutoRemove":false,"VolumeDriver":"","VolumesFrom":null,"CapAdd":null,"CapDrop":null,"Capabilities":null,"Dns":null,"DnsOptions":null,"DnsSearch":null,"ExtraHosts":null,"GroupAdd":null,"IpcMode":"","Cgroup":"","Links":null,"OomScoreAdj":0,"PidMode":"","Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"SecurityOpt":null,"UTSMode":"","UsernsMode":"","ShmSize":0,"ConsoleSize":[0,0],"Isolation":"","CpuShares":0,"Memory":0,"NanoCpus":0,"CgroupParent":"","BlkioWeight":0,"BlkioWeightDevice":null,"BlkioDeviceReadBps":null,"BlkioDeviceWriteBps":null,"BlkioDeviceReadIOps":null,"BlkioDeviceWriteIOps":null,"CpuPeriod":0,"CpuQuota":0,"CpuRealtimePeriod":0,"CpuRealtimeRuntime":0,"CpusetCpus":"","CpusetMems":"","Devices":null,"DeviceCgroupRules":null,"DiskQuota":0,"KernelMemory":0,"KernelMemoryTCP":0,"MemoryReservation":0,"MemorySwap":0,"MemorySwappiness":null,"OomKillDisable":null,"PidsLimit":null,"Ulimits":null,"CpuCount":0,"CpuPercent":0,"IOMaximumIOps":0,"IOMaximumBandwidth":0,"MaskedPaths":null,"ReadonlyPaths":null},"NetworkingConfig":{"EndpointsConfig":{"fx-net":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"bc5c2deb6140256dbebbe0a0cad987aad76a73f0ae2e3ef7371020d4de2573de","EndpointID":"","Gateway":"","IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"","DriverOpts":null}}}}) failed: 404 - 404 Not Found
*****************
➜  fx-master docker ps
CONTAINER ID   IMAGE          COMMAND                  CREATED          STATUS          PORTS                    NAMES
b2f37b612a3a   bobrik/socat   "socat TCP-LISTEN:12…"   15 seconds ago   Up 14 seconds   0.0.0.0:8866->1234/tcp   fx-agent

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions